#rookiemonkey_kw

1 messages · Page 1 of 1 (latest)

harsh isleBOT
robust moss
patent crypt
#

so i think i'll update the default payment method (based on their chosen card on our app) then create checkout session?

robust moss
#

invoice_settings.default_payment_method field is only applicable for invoice and subscription payments, but not one-time payment with Checkout Session in mode:'payment'

patent crypt
#

i see, but we are already providing the customer id on customer field and it prefills the necessary information however it uses the last used payment method.

user chose Card 2 on our app, went to pay redirected to Stripe Checkout and yes it prefills everything but it defaults to Card 1 instead

robust moss
#

we are already providing the customer id on customer field and it prefills the necessary information however it uses the last used payment method.
Yes! This is expected. Checkout Session only pre-fills the last used payment method and doesn't support full list of saved payment methods for customer to choose from.

If you wish to display saved payment methods, it can only be done with your integration by retrieving customer's saved payment methods with List Customer's Payment Methods API https://stripe.com/docs/api/payment_methods/customer_list and display in your own website.

patent crypt
#

thanks, yes exactly that what we are doing already

#

but if user chooses the 2nd card, the stripe checkout session shows the last used payment method,

so i'm thinking is there a way for to specify which payment method to use for the checkout session?

robust moss
patent crypt
#

got it no worries. this would be my last option. Thanks @robust moss! 🙏