#melarts

1 messages ยท Page 1 of 1 (latest)

cunning haloBOT
gritty tangle
#

Could you please summarize your latest follow up question

wide crow
#

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

gritty tangle
#

I'm not sure to understand the issue or what you want to achieve exactly here ?

wide crow
#

should I summarize everything from the previous thread ?

#

(we work in the same company)

gritty tangle
#

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?

wide crow
#

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 ?

gritty tangle
#

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

wide crow
#

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

gritty tangle
#

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.

wide crow
#

could we use that or we are forced to use the webhook?

gritty tangle
#

It depends on your use case.

wide crow
#

after the processPayment we call our backend to trigger the capture yes

gritty tangle
#

yes that could be an option yeah

wide crow
#

so in my case , i could check processedPaymentIntent status ?

#

and if so ! how could I reproduce this in test move for the developpement?

gritty tangle
#

Do you have Stripe test physical card ?

wide crow
#

yes

gritty tangle
#

Or you can use the similated mode

gritty tangle
wide crow
#

yes but my question is how can I reproduce this fail case with this card ?

gritty tangle
#

No you can't.

#

You can create a test using similated mode and replace the payment method with a failure test token

wide crow
rugged valve
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

Have you had a chance to check why did you app think the payment was successful?