Happy Business Starts Here

Zuora Alumni

Making the payment method created by HPM the default payment method for an existing account

Question:  Is it possible to assign the payment method created by HPM as the default payment method to an existing account?



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Alumni

Re: Make the payment method created by HPM the default payment method for an existing account

Solution:

 

In the current product design, the payment method created by HPM is not associated to any existing Zuora account. However, merchants can execute a separate SOAP update call to fulfill the request after obtaining the refId(payment method Id) from the HPM callback response.

 

Here is an example of the callback response which contains the refId.

 

http://yourdomain.com/yourapp/zuora_callback.php?id=4028e697325f8e970132603326446b33&tenantId=10514
timestamp=1316846058955&token=7av18bEz97Jrq9K6z0QPyvJpIqIxSmZc&responseSignature=ODU2ODMyZmY5YmFjNDQzZDQ4NmU2MDg3ODNkNzhlNTc=&success=true&refId=4028e4862ba3fcae012bad2c19e115b4&field_passthrough1=Capture&field_passthrough2=Step2

 

Below is an example of an update call to assign the payment method to an existing Zuora account.

 

<ns1:update>
    <ns1:zObjects xsi:type="ns2:Account">
        <ns2:Id>2c92c0f94ac8307f014ae070bbf616a8</ns2:Id>
<ns2:DefaultPaymentMethodId>2c92c0f9550079af0155061dfeb05d6a</ns2:DefaultPaymentMethodId> </ns1:zObjects> </ns1:update>

 

 Please note: This only applies to the non-Salesforce usage of HPM.  Zuora Quote's HPM iFrame sets the payment method as the existing billing account's default payment method.



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Tags (2)