- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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 √
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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?i
timestamp=1316846058955&token=7av18bEz97Jrq9K6z0QP
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 √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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?i
timestamp=1316846058955&token=7av18bEz97Jrq9K6z0QP
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 √