I have been implementing a function to void a payment on a Clover semi-integrated app with Android Studio (Java), but without success so far.
I'm trying to do so with this "MakeRefundActivity": https://github.com/clover/remote-pay-android-examples/blob/master/remote-pay-android-simple-example/src/main/java/com/example/clover/remotepayandroidsimpleexample/MakeRefundActivity.java
but I'm wondering if this is outdated because I don't see a constructor which have two parameters in the class SaleRequest.
pendingSale (, ());
I assume you have to fetch a payment to void in onCreate first, then in onSaleResponse you can collect paymentId and orderId to void it.
So, how am I supposed to retrieve a payment in order to void it? If there is another resource to follow, it would be appreciated.