#Sanjeewa

1 messages · Page 1 of 1 (latest)

meager remnantBOT
hybrid plinth
#

You can cancel collecting a payment method by calling cancelCollectPaymentMethod in the JavaScript SDK. After Payment Method collection, it looks like you can either process the payment automatically or display a confirmation screen, but I can't remember where we document that. Let me check in and circle back

jagged sluice
#

thank you @hybrid plinth , we need a way to allow the cancelation through terminal display.

I see this option in the API reference https://stripe.com/docs/terminal/references/api/js-sdk#reader-behavior-configuration

however even I set it, the terminal does not display an option

example:
var terminal = StripeTerminal.create({ onFetchConnectionToken: fetchConnectionToken, onUnexpectedReaderDisconnect: unexpectedDisconnect, readerBehavior: { allowCustomerCancel: true } });

Use our API reference to navigate the Stripe Terminal JavaScript SDK.

hybrid plinth
#

Still digging. Apologies for the wait. My reader is acting up and I needed to grab a colleague to help me test

hybrid plinth
#

It looks like the docs are not up to date on this one @jagged sluice. Apologies for the wait. Had to build out the integration and test. It looks like the cancelCollectPaymentMethod() function in the JS integration reverts the the Wise POS E to a ready state