Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎11-23-2015

Re: New Customer Profile and Recurring Billing Enhancements

[ Edited ]

Hello,

 

I am new at Authorize.net and facing some trouble to integrate it with my PHP web-site.

 

My issues:

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.

Administrator
Posts: 149
Registered: ‎03-28-2014

Re: New Customer Profile and Recurring Billing Enhancements

Hi there,

 

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()[0] . "\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,

 

Brian

Administrator
Posts: 149
Registered: ‎03-28-2014

Re: New Customer Profile and Recurring Billing Enhancements

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.