question

yasu avatar image
yasu asked

"Need a receipt screen" while voiding or refunding

I would like to confirm a comment from @David Marginian about "Need a receipt screen" issue in my previous question.


His comment (https://community.clover.com/questions/31901/how-to-void-a-payment.html)

No, there is currently no way to print a void receipt via payment connector.


I'm using an object of PaymentConnector to request a refund and a void as follows:


Refund

RefundPaymentRequest refund = new RefundPaymentRequest();
                     refund.setPaymentId(aTransaction.getPaymentId());
                     refund.setOrderId(aTransaction.getOrderId());
                     refund.setFullRefund(true);                    
                     paymentConnector.refundPayment(refund);

Void

VoidPaymentRequest vpr = new VoidPaymentRequest();
                   vpr.setPaymentId(aTransaction.getPaymentId());
                   vpr.setOrderId(aTransaction.getOrderId());
                   vpr.setVoidReason("USER_CANCEL");
                   vpr.setDisablePrinting(false);
                   paymentConnector.voidPayment(vpr);


I have seen success messages in my log after refunding or voiding a payment transaction, but never have I been able to see "Need a receipt" screen.


My questions:

1. Is it impossible to print a receipt after refunding or voiding a payment transaction, as mentioned by @David Marginian?

2. Which document then should I follow to test my app? I have tested with this.

Clover Android SDKsemi-integrationsClover Flex
10 |2000

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

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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