#iamhein
1 messages · Page 1 of 1 (latest)
Payment Sheet means Mobile, right? Either iOS or Android, or ReactNative
I am using react native, PHP and it's i believe Checkout
Let me check the React Native examples
if you include a Customer in the Checkout Session, Stripe will first check if there is a default payment method i.e. invoice_settings.default_payment_method [0] on the Customer. If yes, then when the user is on the Checkout page, we will prefill the default payment method
[0] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
when you click on change though, the user will have the option to fill in new CC details. They don't get the option to select from existing attached cards
as per https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
In payment mode, the customer’s most recent card payment method will be used to prefill the email, name, card details, and billing address on the Checkout page. In subscription mode, the customer’s default payment method will be used if it’s a card, and otherwise the most recent card will be used.
does this clarify things for you?
i attached customerID in initPaymentSheet
and i check the "save the card". but it doesnt show in next session
@warm compass have you seen this screen before?
It's the "PaymentsUICompleteScreen" in our Stripe React Native repo
(an example)
I believe if the Customer already has a PaymentMethod Attached, the SDK should show this screen
you can follow the example above
oh ok i will take a look at. thank for the help 🙏