question

christianm avatar image
christianm asked racheladmin Deactivated edited

JS SDK - displayOrder causes Clover Mini to display "Unfortunately, Pay Display has stopped."

I am attempting to display an order on my Clover Mini using the Pay Display app and the JS SDK. I have successfully initiated sales and printed receipts however when I attempt to display an order the app crashes showing "Unfortunately, Pay Display has stopped." The following is the code I am using to call the method:

clover.displayOrder({ lineItems: [ { name: 'Burger', price: '$5.00', quantity: '1' } ], tax: '$1.00', subtotal: '$5.00', total: '$6.00' }, function(err, displayOrderResult) { if (err) console.error(err); else console.log(displayOrderResult); });

Remote Pay CloudCloud Pay Display
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.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

Please include the logcat trace from the Clover device (adb logcat ...). You can use pastebin to host it and link to it here.

0 Likes 0 ·
christianm avatar image christianm commented ·

Here's the logcat trace: http://pastebin.com/E7rr4m6j

0 Likes 0 ·

1 Answer

hammer avatar image
hammer answered

The display order message is malformed. There is an example of display order manipulation here - https://github.com/clover/remote-pay-....

10 |2000

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