question

devendra avatar image
devendra asked keithryanwong Deactivated commented

Tender void in a refund transaction

Hi Team,

We are doing void tender during a refund transaction, it is showing tender void response as successful. But refund transaction is not being deleted from cloud transactions.

Below is the request and response for the flow :

REFUND REQUEST : {"orderId":"QXV2N9492J9BE","paymentId":"40JCPE3TA42DT","amount":849,"fullRefund":true}
RESPONSE :: success : true, result : SUCCESS, reason : null, Message : null
Payment ID : 40JCPE3TA42DT, Order ID : QXV2N9492J9BE, Refund Info : Refund{json='{"clientCreatedTime":1527509680765,"amount":849,"createdTime":1527509680765,"payment":{"id":"40JCPE3TA42DT"},"id":"0SEYGBT9T4J8W","taxAmount":null,
"employee":{"id":null}}', bundle=null, changeLog=null}

TENDER VOID REQUEST : {"paymentId":"0SEYGBT9T4J8W","voidReason":"USER_CANCEL","employeeId":null,"orderId":"QXV2N9492J9BE"}
RESPONSE :: success : true, result : SUCCESS, reason : SUCCESS, Message : No extended information provided.
RESPONSE Payment info :: isSuccess : true, isAuth : false, isPreauth : false, isSale : false, Payment : null
When we do tender void in sale transactions , it deletes the payment transaction done from cloud transactions.

It should be similar for refund transactions or this is normal behavior?
Please clarify.

Thanks,
Devendra
Clover Minisecure network pay display
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

justina avatar image
justina Deactivated answered
@Devendra

The voidPayment API can only be used to reverse a payment, and cannot be used to reverse the refund of a payment. We do not expose any API to support reversal of a refund.

The voidPayment API takes in a paymentId and it looks as if the "0SEYGBT9T4J8W" value you had passed in is actually a refundId. Please disregard the success message received on the voidPayment call you had made as the voidPayment API will always return a success message (this will be addressed in a future update).

-- Justin
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

justina avatar image
justina Deactivated answered
@Devendra, this behavior is expected. Refunding a payment will not remove it from the Transactions application.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

devendra avatar image
devendra answered
Hi Justin,

Here the issue is we are doing refund on the same card after voiding that tender once, but we are getting below error:
" This refund would make the order's total refunded amount greater than the original order's amount"

And as per our understanding this means that refund is not voided properly otherwise we should be able to perform refund again without any issue.

Also is there any way to verify if the refund tender void was successful, like in sale we can check in transactions application.

Thanks,
Devendra
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

devendra avatar image
devendra answered keithryanwong Deactivated commented
@justin.a

If voidPayment API is only used to reverse the payment (means only sale transactions), then what should be used to reverse a refund. Here we have requirement to reverse the refunds.

Whats the clover API which support this behavior?

Thanks,
Devendra
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

keithryanwong avatar image keithryanwong commented ·

Hi @Devendra,

Our API does not currently support this behavior.

For the feature you are looking for, would you be looking to undo refunds, manual refunds, or both?

Best,

Keith

0 Likes 0 ·

Welcome to the
Clover Developer Community