#cali_terminal

1 messages ¡ Page 1 of 1 (latest)

daring compassBOT
#

👋 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.

vital kayak
#

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

pseudo stratus
#

the code is the same as in the example! nothing different!

vital kayak
#

What I'm missing is this point the payment intent that is in result is changed what is changed exactly ?

pseudo stratus
#

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

vital kayak
#

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 ?

daring compassBOT
pseudo stratus
#

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

vital kayak
#

Did you have this behavior when you run the quickstart ?

pseudo stratus
#

yes

vital kayak
#

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 ?

pseudo stratus
#

yes, I integrated the exact same code

#

in my project

#

but it is the same

#

exactly the same

vital kayak
#

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.

pseudo stratus
#

yes yes, I can

vital kayak
#

Thanks!

daring compassBOT
#

cali_terminal

pseudo stratus
#

mmm

#

I think you are right

#

thanks for your help, I will investigate and if you want I can let you know the reason