#mitchum17
1 messages · Page 1 of 1 (latest)
There's no general default customer PM for one-off payments so no
What are you trying to achieve?
If you have a customer saved payment method already, there's no need to collect payment details with Elements
We are collecting payment details with a setup intent and PaymentElement. The problem is that when they go to our checkout page we would like to display their payment method details as the payment method that will be charged. We are currently doing this manually until I came across "customerOptions" in the StripeElementsOptions typescript interface that sounds like it will display the customers payment details if I pass in customer and a ephemeralKey
Instead I'd suggest you get the details from the saved payment method directly and display a representation of that, such as a card brand logo and last 4 digits for a credit card
"Paying with Visa 4242" etc
No elements involved in that
Ya that is what we're doing now. It works but we have to parse and display different data for ACH, apple pay, and whatever other payment methods we allow so I was hoping there was a better solution. Do you know what the customerOptions would look like? It's a beta feature
Where are you seeing that? I can certainly look
But as far as I know there's no pre-built web UI for showing a specific payment method like that
This is in element-group.d.ts in types of stripejs
Thanks for the info. Looking in to this, likely you may have to reach out to support like that comment says to have this enabled
Thanks for looking into it
Hey apologies but I am having trouble finding much at the beta but that is likely my searching skills. I think if you just reach out to our support team they should have a better idea of whether you can currently sign up for that beta or if it is just a waitlist for now https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
ok thanks for your help