Happy Business Starts Here

Re: Why Zuora is displaying a success message for a declined payment/refund?

Highlighted
Community Manager

Why Zuora is displaying a success message for a declined payment/refund?

See Reply



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: Why Zuora is displaying a success message for a declined payment/refund?

Question or Problem Statement:

When creating a refund against payment or payment against invoice via API call. The refund/payment is created with "Error" status, and the refund/payment is not affecting the account balance. However the API call to create the refund/payment returns a success message:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:createResponse xmlns:ns1="http://api.zuora.com/">
<ns1:result>
<ns1:Id>8a8082944db0a7e0014dfc2e345e06ad</ns1:Id>
<ns1: Success>true</ns1: Success>
</ns1:result>
</ns1:createResponse>
</soapenv:Body>
</soapenv:Envelope>

 

Solution:

If using the API to create a refund or payment object, the "Success=true" message on the Response string means that you were able to successfully create the refund/payment object. The "Success=true" message is a reference to the success or failure of the SaveResult of the zCreate call. Successfully creating a refund/payment object thru the API does not necessarily mean that the transaction request was approved by the payment gateway.

The Status of the refund/payment transaction request is stored within the refund/payment object itself and is not reflected on the "Success=true" message of the API's response string. Thus, after receiving "Success=true" message of the create call, you will have to execute a query() call to check if the successfully created refund/payment object was approved or declined by the payment gateway.

 



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn

View solution in original post

1 REPLY 1
Highlighted
Community Manager

Re: Why Zuora is displaying a success message for a declined payment/refund?

Question or Problem Statement:

When creating a refund against payment or payment against invoice via API call. The refund/payment is created with "Error" status, and the refund/payment is not affecting the account balance. However the API call to create the refund/payment returns a success message:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:createResponse xmlns:ns1="http://api.zuora.com/">
<ns1:result>
<ns1:Id>8a8082944db0a7e0014dfc2e345e06ad</ns1:Id>
<ns1: Success>true</ns1: Success>
</ns1:result>
</ns1:createResponse>
</soapenv:Body>
</soapenv:Envelope>

 

Solution:

If using the API to create a refund or payment object, the "Success=true" message on the Response string means that you were able to successfully create the refund/payment object. The "Success=true" message is a reference to the success or failure of the SaveResult of the zCreate call. Successfully creating a refund/payment object thru the API does not necessarily mean that the transaction request was approved by the payment gateway.

The Status of the refund/payment transaction request is stored within the refund/payment object itself and is not reflected on the "Success=true" message of the API's response string. Thus, after receiving "Success=true" message of the create call, you will have to execute a query() call to check if the successfully created refund/payment object was approved or declined by the payment gateway.

 



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn

View solution in original post