I have been successful using editPayment to edit an existing paymentprofile (see first code snippit below). But now I want to use addPayment to add a new PaymentProfile. When I use the second code snippit below, it does properly allow the user to add a new PaymentProifile BUT since nothing is returned from Authorize on this post, I cannot get back the new PaymentProfileID (am I mistaken, can I get the PaymentProfileID as a return?)
So because I cannot get the PaymentProfileID, I run getCustomerProfileRequest to return ALL PaymentProfiles. I am then in the odd position where I have to make an assumption which of the returned PaymentProfileID's is indeed the new one that I just added.
Better way?
editPayment
<form method="POST" action="https://test.authorize.net/profile/editPayment" id="formAuthorizeNetPage"> <input type="hidden" name="token" value ="{token}"> <input type="hidden" name="PaymentProfileId" value="xxxxxxx" /> </form>
addPayment <form method="POST" action="https://test.authorize.net/profile/addPayment" id="formAuthorizeNetPage"> <input type="hidden" name="token" value ="{token}"> </form>
04-16-2014 09:08 AM - edited 04-16-2014 09:09 AM