#Codex

1 messages · Page 1 of 1 (latest)

pliant cometBOT
lone osprey
#

hello! you'll need to create the PaymentMethod at least afaik. Can you share why you need the last 4?

placid delta
#

Just as a preview "Your card ending in 1234 will be used" before the actual submission/payment

lone osprey
placid delta
#

Hmm wow, thank you so much, we will consider it

#

But for the time being, there is no penalty creating two payment methods?

#

One to preview the last 4. Then as second to submit?

lone osprey
#

remember that you need to reach out to the email listed in the doc to see if you're able to get access to the beta first

placid delta
#

I see, thank you

lone osprey
#

you wouldn't need to create it twice, if you've already created it the first time (using a SetupIntent), you can use that same payment method to make the payment.

it's pretty much this flow https://stripe.com/docs/payments/save-and-reuse

placid delta
#

Ahh, it's because we don't want to save the generated paymentMethodId. We use Redux to save state, and the customer is able to view it if they tried

lone osprey
#

you don't need to literally save it to your DB, but the PaymentMethod would have already been created in your Stripe Account

placid delta
#

Sorry, not saved in DB. I meant saved in the front end browser

#

Since the user may be able to inspect and view it