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?
Solved! Go to Solution.
07-08-2013 05:43 PM
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.
07-08-2013 05:50 PM
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.
07-08-2013 05:50 PM
Excellent, I just needed to be sure! Thanks!
07-08-2013 05:52 PM