#jayrodrigues-elements-redirect
1 messages · Page 1 of 1 (latest)
Hello Koopajah! Does that work for adding cards as well?
that works for all payment methods yes, that's the default
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?
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?
I was thinking the same.. the issue is because the original pop-up does not update
I don't understand what that could mean
are you doing an iframe what's a "pop-up" in your case?
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?
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
Let me try that