question

devendra avatar image
devendra asked justina Deactivated edited

Refund failure for POS and clover mini integration

Hi Team,

We are getting frequently below message while doing a refund. But the refund is showing successful in cloud transactions.
"This refund would make the order's total refunded amount greater than the original order's amount"

We have done refund several times but was not getting this message earlier.

Find below the refund request and response :
REFUND REQUEST : {"orderId":"DN6EVQ19ZH9QY","paymentId":"HZQYWB9CCXTKE","amount":1594,"fullRefund":true}
RESPONSE :: success : false, result : FAIL, reason : FAIL, Message : This refund would make the order's total refunded amount greater than the original order's amount.

Please let us know what could cause this issue.

Thanks,
Devendra
Clover Minisecure network pay display
2 comments
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 commented ·

Hi @Devendra,

Please reproduce the behavior you are seeing and then send device logs by going to the Help application > Hamburger Icon > Diagnostics > "Send Device Logs" button.

Thanks,

Justin

0 Likes 0 ·
devendra avatar image devendra justina commented ·

Hi Justin,

We have reproduce the issue again. Following is the request and response for the refund transaction.

REQUEST :

{"orderId":"YHY2E552VAGDR","paymentId":"B5P5JE9HPQ72A","amount":749,"fullRefund":true}

RESPONSE :

success : false, result : FAIL, reason : FAIL, Message : This refund would make the order's total refunded amount greater than the original order's amount. Payment ID : B5P5JE9HPQ72A, Order ID : YHY2E552VAGDR, Refund Info : null

We have send the logs of the clover device and attached is the screenshot for the payment failures in the cloud transactions history. Please check and let us know what we are missing here?

0 Likes 0 ·

1 Answer

justina avatar image
justina Deactivated answered justina Deactivated edited
@Devendra

The error "This refund would make the order's total refunded amount greater than the original order's amount" is correctly being thrown. Based on the screenshot you provided, it looks as if you had sent a refundPaymentRequest with an amount of matching the full value if the transaction, even though it had already been partially refunded. This would make the refund amount greater than the original total.

-- Justin
2 comments
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 commented ·

Hi Justin,

We have done split tender on same card in sale transaction. While doing refund transaction, in first refund request we refunded $1.00 and in second request we are trying to refund $7.49 but we are getting "This refund would make the order's total refunded amount greater than the original order's amount". Here have attached the Image for transaction from clover Mini device. Please let us know what we are missing or any root cause for the issue.

Thanks,

Devendra

0 Likes 0 ·
img.jpg (100.9 KiB)
justina avatar image justina devendra commented ·

@Devendra,

It looks as if the $1.00 refund was applied to the $7.49 payment (B5P5JE9HPQ72A) and not the $1.00 payment (96KEM16Y3Q6QE). Since you are calling a refund request with an amount of $7.49 to the $7.49 payment that already has $1.00 refunded, the error is thrown.

In order to verify which payment a refund was applied to, you can tap on the refund entry in the Clover Transactions app to view transaction details.

-- Justin

0 Likes 0 ·

Welcome to the
Clover Developer Community