#420coupe_code
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/1412287792469250101
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
⛔️ Stripe developers have stepped away for a short while
Please leave your questions here, and we’ll respond as soon as we're back! If you need help urgently, you can contact Stripe support for help.
hi there, give me a moment to catch up 👋
@sweet frost what do you mean by current payment session pop-up? Do you have a screenshot of what the pop-up looks like?
Hi yes, here
This payment session window
One second let me just block out personal info
ah okay, so you meant Apple Pay's pop-up
This payment session, the payment intent it gets made with gets canceled on the backend and a new one is created. How can I close this session or push it the new payment intent client secret
Yes exactly
Okay so this is the guide you probably want to follow: https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#collect-shipping
When you are using Express Checkout Element, you don't have to cancel the initial PaymentIntent that is created. For any changes, like for Shipping, you can call elements.update() with the new amount.
The code sample in this section is what you'll want to follow: https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#collect-shipping:~:text=%3B })%3B-,Listen%20to%20the,either%20resolve%20or%20reject%20if%20you%20choose%20to%20handle%20this%20event.,-checkout.js
Is there no way to force close those sessions? As it’s the backend that handles this and I only manage the front end
no but its not necessary to close those session because the amount on the Apple Pay pop-up can be updated
Yes, but I don’t control the backend different team. When I call cart updates it hits the backend to update everything.