#jaysantana_unexpected
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/1240458609192603648
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, can you take a screen recording so that I can have better understanding of your question?
So when I try to recreate this issue it’s not happening, after over nearly 100 payments it has not occurred for me even once. However when cusotmers call us to say there order hasn’t come yet and we ask them what happend this is what they tell us
Our confirmation page triggers the order to be sent to the pos
And it also triggers confirmation email
So what’s happening is when this unlimited loading is happening the customer presses refresh and then pays multiple times as payment before was taken
He just wasn’t aware
Do you have the checkout session ID?
Yes would you like me to provide ?
Yes, the ID of the checkout session where your customer paid
here is the payment initent - pi_3PGo7cGa2Ce523pJ0Mlo5Sqh
customer paid here - https://dilankebab.fastfood-os.io/
i would like to share a screenshot with you however i would not like to post it here due to GDPR and protection of senstive data
however it will help to explain
OK. Looks like you are not using Stripe Checkout integration, you are using PaymentIntent + PaymentElement.
Does your page create a new paymentIntent when your cusotmer refresh it?
yes however we have a update tomorrow which will use the update api instead of making a new payment intent
however im not too sure would that solve it. if customer refreshes whilst on the spinning loading animation and the payment is succeful would it redirect to the payment confirmation page
https://docs.stripe.com/api/idempotent_requests you might want to make your request idempotent so that you can avoid creating duplicate paymentIntent when your customer refreshes the page
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so lets say in this scenario
you are checking out
and then after entering payment details and pressing pay you are stuck on a loading screen
the payment has been taken however the redirect has not occured and you are still on the loading screen
and you decide to refresh the page
will you go back to the checkout which is whats happening now
or would you be redirected to the confirmation page
Your customer won't be able to pay multiple times as long as it's the same paymentIntent. If a PaymentIntent is already succeeded, the next payment attempt will fail
ok thats good however we need them to go to the confirmation page
as thats what triggers the order to be sent to the pos
and also the confrimation email
is there any way to create a condition which if they refresh it will check payment intents status
if succeed it will go to confirmation page
You can call stripe.retrievePaymentIntent() https://docs.stripe.com/js/payment_intents/retrieve_payment_intent to retrieve the PaymentIntent and check its status.
thank you, i am a Stripe Growth Memeber
and was wondering if there is anyone available to assist my devs with this
If your developers have questions, we are happy to help with them in this discord channel
hi river
what checkout process would you suggest for a online food ordering platform who process's large volumes of transaction ?
All payment integrations in Stripe supports processing large volumes of transactions
we are currently using PaymentIntent + PaymentElement. with elements
The only differences between the integrations are just the UI differences that:
- Checkout Session > Stripe hosted payment page
- Payment Element > Payment form embedded in your website
The decision will be up to your business requirements about how you would like the customer checkout experiences to be like, i.e. making payment on Stripe hosted payment page or within your website
What kind of payment processing screen are you referring to?
Not for Payment Element. Your system should create the payment processing information while the payment is still in progress
thank you for your help todau