question

danramey avatar image
danramey asked danramey published

Void Payments with Network Pay Display .NET Semi-Integration

My customer facing POS needs to cancel payments on a Flex 2 when a user presses a cancel button or due to a timeout. This may happen at any point after the sale is initiated.

To accomplish this, I'm attempting to call CloverEventConnector.VoidPayment as follows:

      var voidPaymentRequest = new VoidPaymentRequest();
      voidPaymentRequest.PaymentId = this.TransactionId;
      voidPaymentRequest.VoidReason = VoidPaymentRequest.USER_CANCEL;
      clover.VoidPayment(voidPaymentRequest);

This fails with an InvalidStateTransition message, for example:

InvalidStateTransition Could not transition to Void Payment From BUSY::STARTING_PAYMENT_FLOW to Void Payment.

or

InvalidStateTransition Could not transition to Void Payment From WAITING_FOR_CUSTOMER::RECEIPT_SCREEN to Void Payment

How can the POS cancel these pending sales?

semi-integrationsSale
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