#cali_terminal
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/1243118686475390988
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could you please share more details about this part
But at this point the payment intent that is in result is changed and I use the old one server side, so it is a problem for me!
For example, share a concrete example step by step and what change are you referring to
the code is the same as in the example! nothing different!
What I'm missing is this point the payment intent that is in result is changed what is changed exactly ?
when I generate the client_secret I create server side a new payment intent and I save that payment intent
then, client side, I call terminal.collectPaymentMethod(client_secret).then(function(result) { and into this callback I call terminal.processPayment(result.paymentIntent).then(function(result) { but the payment intent here (the one in result.paymentIntent) is different than the one that I generate server side when i created the client secret
and I need a way, from webhook, to understand that this new payment intent refers to the old one that I GENERATED and then saved server side
but the payment intent here (the one in result.paymentIntent) is different than the one that I generate server side when i created the client secret
Sorry, but I'm not understanding why the payment intent will be different here ?
Can you share the two payment_intent Ids for example ?
yes
First client secret:
"pi_3PJXWcIIyY8tf87y1PB0rmUI_secret_Ep6GTqPf8nQWirl2gc9LozPde" with payment intent pi_3PJXWcIIyY8tf87y1PB0rmUI
payment intent after I call collectPaymentMethod with the client secret I shared before: pi_3PJCkSIIyY8tf87y0Q8vTWzV
Did you have this behavior when you run the quickstart ?
yes
In your integration you are creating two different PayemntIntent
You download it and run it as it is, or follow it and implement it by your own in your integration/code base ?
the quickstart I mean https://docs.stripe.com/terminal/quickstart
yes, I integrated the exact same code
in my project
but it is the same
exactly the same
No there must be a leak somewhere
in your integration/code
You need to make sure that you are using the same PaymentIntent
May I inivte you to run the quickstart as it in a separate project and try to reproduce the issue
if so please share the reproduction steps.
yes yes, I can
Thanks!
cali_terminal