#niall_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1397583050745053194
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Are you doing server driven?
Yes
Would you like to see some of the code? The general gist is... Create the payment intent, which is fine, pass the payment intent ID with the reader ID to the Terminal, all Curl, boss doesn't want any local code installed, .... and then I'm getting a 'payment_pending' response straight away... I did get 'success' once or twice, ... Can I set a timer and pass the same request again in hope of a success?
Hello
Jumping in to help out here ๐
With Server driven integration, most things happen async. So when you "process payment", it will not return a synchronous response of payment succeeding.
While you can poll the PaymentIntent ID and retrieve the status, the recommended way is to listen to webhook events. We document this in detail: https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#verify-reader
I'd recommend reading through the doc as it would help clarify the flow
Thanks.... Ok, so, is there any way of checking with the reader again?
And how would I poll the Payment intent status?
You can use the reader object too, it's outlined in the docs I shared above - https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#reader-object
All the docs are based on SDK.... There's no API specific version of that is there. (Boss says Curl everything, no local installation)
And thanks folks
Polling the Payment Intent == Just retrieve the PaymentIntent using the API - https://docs.stripe.com/api/payment_intents/retrieve?api-version=2025-06-30.preview&rds=1
(Boss says Curl everything, no local installation)
that's... interesting ๐
How do they expect it to work in production?
Hanzo... You da man!