#hayen_unexpected

1 messages ¡ Page 1 of 1 (latest)

hoary reefBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255125369023889428

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

modern jacinth
plain tangle
#

But it doesn't happen to paypal or ideal

#

Is there a reason why?

#

paypal and ideal are both showing 1,21 (21% vat is added), which is correct

modern jacinth
#

Just different implementations. The wallets require updates to stay in sync with the underlying intent amount

#

So if you update the Payment/Setup Intent server-side, you need to call fetchUpdates once that resolved and then the wallet UIs will reflect the changes

plain tangle
#

I tried doing something like this:


                // TO DO: Update payment intent with orderId /
                // You need to pass the paymentIntent.paymentIntentID
                // Read docs about updating: https://stripe.com/docs/api/payment_intents/update
                const updatedPaymentIntent = await updatePaymentIntentApi(paymentIntent.paymentIntentId, orderId);

                // Fetch updates to reflect the changes in the UI
                await elements.fetchUpdates();
neat crescent
#

hi! I'm taking over this thread.