cancel
Showing results for 
Search instead for 
Did you mean: 

How to update payment profile w/ PHP

In PHP i would like to retrieve and then update a payment profile. 

 

$response = $request->getCustomerPaymentProfile($customerProfileId);

 

But the function doesn't return the AuthorizeNetPaymentProfile object needed for the updateCustomerPaymentProfile method. 

Instead it returns the Simple Xml object. 

 

So what is the easiest and best way to retrieve and update a payment profile?

 

Thanks

bipiprokop
Member
1 REPLY 1

Unfortunately, the SDK does not contain a method to take the XML and automatically convert it back into a paymentProfile object.  The only option with the current version of the PHP sdk is to extract the details from the XML object with the native XML methods and to put it back into a new paymentProfile object.

Trevor
Administrator Administrator
Administrator