cancel
Showing results for 
Search instead for 
Did you mean: 

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?

 

 

 

 

nhaines888
Member
1 ACCEPTED SOLUTION

Accepted Solutions

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

TJPride
Expert
2 REPLIES 2

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.

TJPride
Expert

Excellent, I just needed to be sure! Thanks!