question

huynguyen avatar image
huynguyen asked justina Deactivated answered

[SNPD]CloverConnector: when to use refundPayment and voidPayment

We are developing mobile(Android and iOS) applications to integrate to Clover System via SNPD. After perform a payment, we store the payment info in our system. When user wants to do a refund from a mobile (Android and iOS)apps, mobile apps will call either refundPayment and voidPayment. However, I we do not have sufficient information from the current Payment info to determine whether the app should call refundPayment or voidPayment.
Question:
1)Do we have any api that can be used to determine whether a Payment should be refunded or voided?
2)If the current batch has not been closed yet, will the refundPayment work properly? Or the app has to invoke voidPayment?
3)If the current batch has been closed already, will the voidPayment work properly? Or the app has to invoke refundPayment?
secure 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.

1 Answer

justina avatar image
justina Deactivated answered
Hello @huy.nguyen,

Welcome! The refundPayment and voidPayment API are talked about in detail in this community post:
https://community.clover.com/questions/10469/refun...

Either API can be used whether or not a batch has been closed. What happens at they gateway level is determined by whether or not the void window is open. However, having the payment and refund visible in the Transactions application only occurs on use of the refundPayment API.

Please let me know if you have any further questions!

-- 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.

Welcome to the
Clover Developer Community