#pawelk0903

1 messages ยท Page 1 of 1 (latest)

ripe laurelBOT
#

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.

vague plume
#

Hello

primal forum
#

Hey ๐Ÿ™‚

vague plume
#

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.

primal forum
#

if i remove the if_required

#

will i get the url to redirect to if the redirect is necessary?

vague plume
#

No it will always redirect in that case

primal forum
#

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?

vague plume
#

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

primal forum
#

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

vague plume
#

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 use redirect: if_required then 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

primal forum
#

if it would open a modal, this would work

#

let me check again

vague plume
#

๐Ÿ‘

primal forum
#

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

vague plume
#

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

primal forum
#

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?

vague plume
primal forum
#

oh ok, this works with automatic payment methods right ?

vague plume
#

Yes it does

primal forum
#

ok

#

ill try that one tomorrow

#

thank you for help!