#tankosaurus-checkout-migration
1 messages · Page 1 of 1 (latest)
- In Checkout, the customer will only see the default payment method, but you can change which payment method is default before creating the Checkout Session.
- When you say "disable" what do you mean? Like, do they stop showing up somewhere?
- Yes, you would need to use Checkout for this to work
Re: 2. Yes, exactly! If you enable setup_future_usage then go to the Checkout page, WeChat, Klarna, etc disappear as options. Turning setup_future_usage off has them showing back up
That is expected behavior though I believe we have a workaround. One moment as I try to find it again in our API reference
So basically what is happening is that when you set setup_future_usage like that at the top level, we will exclude any payment method that doesn't support that functionality. You can however set this per payment method, so you would set params like payment_method_options.card.setup_future_usage for each payment method that you want to enable this for https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_options-card-setup_future_usage
That takes away some of the magic of automatic payment method selection but it will allow you to enable saving payment methods for methods that support it while still displaying methods that don't.
Oh, that's really helpful! Really appreciate that info