#Lorey-payment-intent

1 messages ยท Page 1 of 1 (latest)

umbral sail
#

๐Ÿ‘‹ Happy to help

swift sphinx
#

Hi river ๐Ÿ™‚

umbral sail
#

Can you share the example Payment Intent ID that you don't receive Payment Intent when user is sent back to your web application?

swift sphinx
#

Actually I don't know to which Payment Intent this happened because i don't have the reference ๐Ÿ˜…

umbral sail
#

What type of integration are you using?

swift sphinx
#

So our stack is divided in a NuxtJS front-end and a Laravel (PHP) back-end.

We're creating payment intents on the front-end. The user gets redirected to our back-end from Stripe, which in turn redirects the user back to our front-end

#

Because our back-end is stateless, we don't have a session of the user so we rely on this payment_intent parameter to figure out which payment it involves.

worldly lava
#

Hi! I'm taking over this thread.
What are you using on the frontend to collect payment information and confirm the PaymentIntent? The Payment Element?

swift sphinx
#

Hi soma

#

We use some Stripe Element but we call the payment method's confirm function ourselves

#

For clarification ๐Ÿ™‚

#

So the return url we send to Stripe is plain, and we expect Stripe to redirect the user to that given URL with an additional payment_intent query parameter

#

This is not documented in the Stripe docs but in my last conversation with one of your colleagues it was made clear to me that this was supported

worldly lava
swift sphinx
#

Oh so it is documented!

#

Cool, that's good to know.

#

So if there is no PaymentIntent we can just dismiss the request?

worldly lava
#

As far as I know the PayementIntent should always be in the URL, so maybe some of your users try to directly access your return_url without submitting the payment form? Not sure.

So if there is no PaymentIntent we can just dismiss the request?
I would recommend to add some logging on your end to try to understand what is happening exactly. If my idea above is correct, then sure you can just dismiss the request.

swift sphinx
#

Alright thank you for the clarification! And it's good to know this is documented behaviour. Thanks soma!