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?
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.