#wjq8g6
1 messages · Page 1 of 1 (latest)
you would need to get that from the Payment Method object after it was created by the Payment Element
Right now we just pass the payment element directly to the confirmPayment call without creating a payment method first, would we need to switch to calling stripe.createPaymentMethod + stripe.confirmCardPayment instead?
If you need the Payment Method last4 before you create the Setup/Payment Intent, then you may want to build a 2-step flow, as mentioned here: https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=payment#create-pm