#melarts
1 messages ยท Page 1 of 1 (latest)
Could you please summarize your latest follow up question
I review the answers given in the first thread and I don't understand why it is advised to use the webhook whereas it is mentionned nowhere in the documentation how on to collect payment for the terminal. Our current integration has followed this documentation https://stripe.com/docs/terminal/payments/collect-payment
I'm not sure to understand the issue or what you want to achieve exactly here ?
should I summarize everything from the previous thread ?
(we work in the same company)
No
Simply what you want to achieve?
why it is advised to use the webhook whereas it is mentionned nowhere in the documentation how on to collect payment for the terminal
Could you share more details about this? what are you looking for?
I don't understand why the answer is to use the webhook, this is mentionned nowhere in the documentation ๐
or i did not see it
and second question, is it the processPayment method that performs the confirm call ? If so then could we rely on some attribute of the returned payment intent to know that the payment failed ?
I don't understand why the answer is to use the webhook, this is mentionned nowhere in the documentation ๐
Did you check this part ?
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=server-driven#webhook-events
If so then could we rely on some attribute of the returned payment intent to know that the payment failed ?
Yes you can check the PaymentIntent's status
I did *NOT have theses sections in my link !! how is that possible ?
what status does the payment should have to go to the nexts steps ? after calling processPayment we call stripe.paymentIntents.capture
after calling processPayment we call stripe.paymentIntents.capture
The payment intent will have succeeded status, and the payment is completed
I invite you to follow that guide step by step till the end.
As is understant it will have require_catpure status right ? https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=server-driven#payment-intent
could we use that or we are forced to use the webhook?
You can use that if you want to trigger the capture action from your frontend
It depends on your use case.
after the processPayment we call our backend to trigger the capture yes
yes that could be an option yeah
so in my case , i could check processedPaymentIntent status ?
and if so ! how could I reproduce this in test move for the developpement?
Do you have Stripe test physical card ?
yes
Or you can use the similated mode
You simply test the integration
yes but my question is how can I reproduce this fail case with this card ?
No you can't.
You can create a test using similated mode and replace the payment method with a failure test token
problem is we tried to do it cf : #1149632808524984360 message but our app was handling well the error