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?