question

jasonbanks avatar image
jasonbanks asked racheladmin Deactivated edited

CloverConnector with Remote Pay, Void transaction

Setting up a Void using Network Pay, the member VoidReason (string) is required, but appears to have predefined values as an exception is thrown stating Requested value 'VALUE' was not found. CloverConnector 1.4.0 reference site ( http://clover.github.io/remote-pay-windows/1.4.0) does not provide a guide to required values. What are the acceptable values for VoidReason? Should this not be an enum type if the values are predefined?

Side note, clicking on any of the "Definition at line XXX of file FILENAME.cs" produces a 404 not found exception.
Clover Mini
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

racheladmin avatar image
racheladmin Deactivated answered racheladmin Deactivated edited
2 comments
10 |2000

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

jasonbanks avatar image jasonbanks commented ·

Thank you @racheladmin, transaction completes successfully now. Is there a follow-up command to be sent to the terminal post-void? My mini sits with the message "The transaction was voided.", and there appears to be no way to dismiss the message other than exiting Network Pay.

0 Likes 0 ·
racheladmin avatar image racheladmin jasonbanks commented ·

Hmm, the CloverConnector should order the Mini past that message to the Thank You screen and then back to the Welcome screen (you can see the code here: https://github.com/clover/remote-pay-windows/blob/master/lib/CloverConnector/com/clover/remotepay/sdk/CloverConnector.cs#L1702). However, it's possible that you're closing the WebSocket before those commands are issued. When are you calling dispose()?

You can also manually return the Mini to the Welcome Screen by calling ICloverConnector.ShowWelcomeScreen(). (Again, though, it's async, so it can also be cut off by disposing of the WebSocket.)

0 Likes 0 ·

Welcome to the
Clover Developer Community