11-23-2015 04:16 AM - edited 11-23-2015 04:19 AM
I am new at Authorize.net and facing some trouble to integrate it with my PHP web-site.
1) When i create a customerProfile a payment profile also get created along with it.
There is a method to get customerProfileId($response->getCustomerProfileId()).
But how ro get customerPaymentProfileID.
2) When i create a customerPaymentProfile it is gives success response. but null customerPaymentProfileID.
3) How to get a list of all customerPaymentProfiles by customerProfileId only.
I am using same code as provided in Developer API referance.
Please help me with this problem.
11-25-2015 03:10 PM
I just updated the sample code to show getting the payment profile ID: http://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile
echo "SUCCESS: PAYMENT PROFILE ID : " . $response->getCustomerPaymentProfileIdList() . "\n";
For 2) we're looking into that one. Will respond again to this same thread.
For 3) GetCustomerProfile will give you a list of profiles for that Customer ID: http://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-profile
Hope this helps,
11-26-2015 11:01 AM
For 2) Check out the sample code at https://github.com/AuthorizeNet/sample-code-php/blob/master/CustomerProfiles/create-customer-payment...
This shows the new payment profile ID being output after the call.