mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 09:44:34 -04:00
Stubs for search authorize.net
This commit is contained in:
parent
43e74d6293
commit
c9a5683ecd
@ -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;
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user