#sarthal17-terminal-listener
1 messages ยท Page 1 of 1 (latest)
Appreciate your patience
I don't think we have a listener specific for swiping. Can you expand on the usecase here so that we can figure out if there are any alternatives?
Yes.
I wanted any kind of signal from the terminal device to my pos system so that I change the status of payment inprogress and show that to the biller that payment is in processing state
Ah okay. The terminal SDK can handle that on its own
https://stripe.com/docs/terminal/payments/collect-payment#process-payment
I wanted that so that I can tell the customer when to swipe the card and after swipping wait for payment processing
What terminal device do are you trying to integrate?
I am designing integration for BBPOS WisePOS E
Gotcha.
So when the SDK runs collectPaymentMethod function, the reader itself would prompt the customer to tap/swipe the card by showing a preview
And while its processing w/ processPayment, the reader would also show a loading screen
But when to run process payment as there is no event which tells our system to proceed with this step?
I'm not sure I follow
Isn't your system itself calling the processPayment function?
Are you trying to implement server-driven solution?
Nope. Thanks for all the answers.
NP! ๐ Glad I could help