#Codex
1 messages · Page 1 of 1 (latest)
hello! you'll need to create the PaymentMethod at least afaik. Can you share why you need the last 4?
Just as a preview "Your card ending in 1234 will be used" before the actual submission/payment
you might want to consider this beta : https://stripe.com/docs/payments/build-a-two-step-confirmation (this section : https://stripe.com/docs/payments/build-a-two-step-confirmation#show-details)
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?
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
I see, thank you
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
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
you don't need to literally save it to your DB, but the PaymentMethod would have already been created in your Stripe Account