#jayrodrigues-elements-redirect

1 messages · Page 1 of 1 (latest)

magic turret
#

You control where to redirect yes. I'm assuming you're using PaymentElement

past sable
#

Hello Koopajah! Does that work for adding cards as well?

magic turret
#

that works for all payment methods yes, that's the default

past sable
#

So if I have a pop-up where a user specifies they are going to define the amount they are going to pay and they can select a stored payment method.

And in the dropdown they have an option to add a new payment method. That brings up another pop-up with the Stripe element for them to store payment details. After that's stored, it redirects and gets rid of the pop-up. Do you have a best practice for this?

magic turret
#

the redirect is entirely expected, so really you should deal with this like any new page load on your website

#

@past sable did you have more questions?

past sable
magic turret
#

I don't understand what that could mean

#

are you doing an iframe what's a "pop-up" in your case?

past sable
#

Let me ask you another question - can I just add the card element within another pop-up so that I don't have to load a new pop-up?

magic turret
#

the card element is an iframe that you put wherever you want in your page, modal, iframe, popup, straight in the top-level

#

Sorry not really sure I grasp what you are describing

past sable
#

Let me try that