#mammouth-elements-updatepm
1 messages · Page 1 of 1 (latest)
mammouth-elements-updatepm
@round lake in that case you'd be collecting card details ahead of a future payments so you'd follow https://stripe.com/docs/payments/save-and-reuse
You can also just use our CustomerPortal product: https://stripe.com/docs/customer-management
any form i can display to the user ?
I just gave you a link to docs that cover this in details
or i use the same form and hide the email field then i create a new payementMethod using the api
There's a UI for it automatically, it "just works" totally fine
I'm sorry, this is a bit cryptic. What email are you referring to? If you collect card details there's no email in any of our Elements
no, a option from your settings maybe ?!?
I'm sorry I have no idea what this sentence could mean
You're the developer, you own the code here, how are you making this form appear?
@round lake are you still here?
I'm trying to find out where this email came from.
have nothing else than
elements = stripe.elements({ clientSecret, appearance });
const linkAuthenticationElement = elements.create("linkAuthentication");
linkAuthenticationElement.mount("#link-authentication-element");
const paymentElementOptions = {layout: "tabs"};
const paymentElement = elements.create("payment", paymentElementOptions);
paymentElement.mount("#payment-element");
Cool so you have two separate elements here. The email is from the linkAuthentication one, not PaymentElement
You can do the same thing for collecting new card details, there's no different