diff --git a/app/PaymentDrivers/Authorize/AuthorizeCreateCustomer.php b/app/PaymentDrivers/Authorize/AuthorizeCreateCustomer.php index 84477c155554..a49b98713a2b 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; + +// } + + +// } + + + + +