#mitchum17

1 messages · Page 1 of 1 (latest)

bleak remnantBOT
fallow nexus
#

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

sly wraith
#

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

fallow nexus
#

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

sly wraith
#

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

fallow nexus
#

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

sly wraith
#

This is in element-group.d.ts in types of stripejs

bleak remnantBOT
orchid warren
#

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

sly wraith
#

Thanks for looking into it

orchid warren
#

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

sly wraith
#

ok thanks for your help