#zhangweijun
1 messages · Page 1 of 1 (latest)
Hi
Could you please share more details about you want exactly to cancel automatically ?
I want to automatically cancel the swipe request if the card is not swiped within 20 seconds after calling processPaymentIntent
You are using a server-driven integration ?
yes
There is not a built int feature for this
You can build this in your integration by canceling the current reader action:
https://stripe.com/docs/api/terminal/readers/cancel_action
You create a background task that cancels the action in 20sec
if nothing happens
Is it necessary to continuously retrieve PaymentIntent within 20 seconds
Why you need to retrieve the PayentIntent within 20 seconds specificly ?
what is the issue you are trying to solve here ?
What conditions do I need to establish for a task to effectively cancel card swiping