Reply
Highlighted
Member
Posts: 5
Registered: ‎07-08-2013
Accepted Solution

Do I need a Customer Profile and Payment Profile?

Im a bit confused.

I am building software for recurring memberships.

I have the code for creating a customer profile and creating a payment profile.

Do I need to create the customer profile first and then add a payment profile with the card they wish

to keep on file?  I'm using AuthnetXml class and there are 2 methods:

-createCustomerProfileRequest

-createCustomerPaymentProfileRequest

 

I'm assuming I call the first one then pass the customer profile id to the Payment profile request along with the card data?

 

 

 

 


Accepted Solutions
Solution
Accepted by topic author nhaines888
‎08-21-2015 01:58 AM
Posts: 1,609
Topics: 15
Kudos: 209
Solutions: 121
Registered: ‎06-23-2011

Re: Do I need a Customer Profile and Payment Profile?

Correct. You first create the customer profile, then you can attach however many payment profiles as necessary, passing the ID from the customer profile $response->getCustomerProfileId(). I highly recommend, by the way, using one of the API's and not working directly with the XML unless you really have to for some reason. I generally work with the PHP API.

View solution in original post


All Replies
Solution
Accepted by topic author nhaines888
‎08-21-2015 01:58 AM
Posts: 1,609
Topics: 15
Kudos: 209
Solutions: 121
Registered: ‎06-23-2011

Re: Do I need a Customer Profile and Payment Profile?

Correct. You first create the customer profile, then you can attach however many payment profiles as necessary, passing the ID from the customer profile $response->getCustomerProfileId(). I highly recommend, by the way, using one of the API's and not working directly with the XML unless you really have to for some reason. I generally work with the PHP API.

Member
Posts: 5
Registered: ‎07-08-2013

Re: Do I need a Customer Profile and Payment Profile?

Excellent, I just needed to be sure! Thanks!