#mentijm-default-pm
1 messages · Page 1 of 1 (latest)
Hey! In cases where both are present, the default PM on the subscription will take precedent
Ok thanks. And what takes precedence between default_source and invoice_settings.default_payment_method?
On the Customer object?
I believe it will be the default_payment_method is they're the recommended integration path now (not Sources)
Yes
Okok, but it seamed like the checkout session set it on default_source. But I might be wrong about that
Can you share the Checkout Session ID?
"id": "cs_test_a16WmMhEZQfweGwRwKX7q5Yurd0GNUUneii2I8a8I2sp49zsrR81XgPHQI" for example
Thanks, checking
Hmm, seems you're correct!
Not sure why that is the case. invoice_settings.default_payment_method is recommended if you're using Payment Methods: https://stripe.com/docs/api/customers/object#customer_object-default_source
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hm I don't think I am correct or? I can see it's the default_payment_method on the subscription. But on the customer I only see null both on default_source and default_payment_method?
Ah yes, Checkout doesn't set it on the Customer object – sorry
Not in mode: 'subscription' anyway
agree, but what about mode setup?