#pawelk0903
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- pawelk0903, 2 hours ago, 7 messages
- pawelk0903, 5 days ago, 31 messages
Hello
Hey ๐
There won't be a URL provided here if you use redirect: if_required and it is a payment method type that doesn't require a redirect... this integration is different in that manner. Instead, you would retrieve the PaymentIntent after the promise resolves and redirect as you desire with that information.
if i remove the if_required
will i get the url to redirect to if the redirect is necessary?
No it will always redirect in that case
my issue is that calling this action, automatically redirects me to another page, Id like to get the url and make the redirect myself. How do i do it?
I don't understand what "get the url" means. You know the URL that you want to redirect to already -- you control the site. So in this case, you just handle that redirect in your JS code after the confirmPayment() promise resolves
When the redirect is needed ( ie 3d secure flow ), it changes my current window location, it breaks the flow of purchase, it does not open new tab or new window.
What i would like to achieve, is to open a popup window for the user to confirm the payment and then continue the flow normally
before i've achieved it via creating source. Source had the url to redirect to if it was necessary ( i.e 3ds )
which i could open in the popup window
When the redirect is needed ( ie 3d secure flow ), it changes my current window location, it breaks the flow of purchase, it does not open new tab or new window.
If you useredirect: if_requiredthen it should just open a modal on that page, not redirect to a new window.
And then the modal closes after 3DS is completed and there is no redirect at all
So you can continue the flow.
So I'm sorry but I still don't understand
๐
unfortunately it does not open a modal
it redirect me to th e external page
this is the last one
so i loose the control of the flow
Here is the confirmation request: https://dashboard.stripe.com/test/logs/req_cvni8OsdpKaTnu -- you did not pass redirect: if_required
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ah
This is p24
So it is a redirect-based PaymentMethod
This is not 3DS
So that is why
You don't have a choice here
This payment method type always redirects
If you don't want this, then for p24 you would not use Payment Element.
You would create/confirm a PaymentIntent server-side
And that allows you to handle the redirect
sounds like an idea
how would the flow look like ?
in this case?
creating / confirming payment intent serverside is not possible to be used with payment element?
Actually you canuse Payment Element if you use the server-side confirmation flow shown here: https://stripe.com/docs/payments/finalize-payments-on-the-server
oh ok, this works with automatic payment methods right ?
Yes it does