From c9a5683ecd6e37fce5fae76c01e076a1575d735d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 17 Nov 2022 11:48:34 +1100 Subject: [PATCH] Stubs for search authorize.net --- .../Authorize/AuthorizeCreateCustomer.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/app/PaymentDrivers/Authorize/AuthorizeCreateCustomer.php b/app/PaymentDrivers/Authorize/AuthorizeCreateCustomer.php index 84477c1555..a49b98713a 100644 --- a/app/PaymentDrivers/Authorize/AuthorizeCreateCustomer.php +++ b/app/PaymentDrivers/Authorize/AuthorizeCreateCustomer.php @@ -136,3 +136,36 @@ class AuthorizeCreateCustomer // } // } } + +// $request = new net\authorize\api\contract\v1\GetCustomerProfileIdsRequest(); +// $request->setMerchantAuthentication($auth->merchant_authentication); +// $controller = new net\authorize\api\controller\GetCustomerProfileIdsController($request); +// $response = $controller->executeWithApiResponse($auth->mode()); + +// // $customer_profile_id = end($response->getIds()); + +// foreach($response->getIds() as $customer_profile_id) +// { +// $request = new net\authorize\api\contract\v1\GetCustomerProfileRequest(); +// $request->setMerchantAuthentication($auth->merchant_authentication); +// $request->setCustomerProfileId($customer_profile_id); +// $controller = new net\authorize\api\controller\GetCustomerProfileController($request); +// $response = $controller->executeWithApiResponse($auth->mode()); + +// $profileSelected = $response->getProfile(); + +// if($profileSelected->getEmail() == 'katnandan@gmail.com') +// { + +// $profileSelected; +// break; + +// } + + +// } + + + + +