cancel
Showing results for 
Search instead for 
Did you mean: 

Re: New Customer Profile and Recurring Billing Enhancements

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.

omgehlot4
Member
2 REPLIES 2

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

brianmc
Administrator Administrator
Administrator

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.