#mentijm-default-pm

1 messages · Page 1 of 1 (latest)

odd sparrow
#

Hey! In cases where both are present, the default PM on the subscription will take precedent

rocky shale
#

Ok thanks. And what takes precedence between default_source and invoice_settings.default_payment_method?

odd sparrow
#

On the Customer object?

#

I believe it will be the default_payment_method is they're the recommended integration path now (not Sources)

rocky shale
#

Yes

#

Okok, but it seamed like the checkout session set it on default_source. But I might be wrong about that

odd sparrow
#

Can you share the Checkout Session ID?

rocky shale
#

"id": "cs_test_a16WmMhEZQfweGwRwKX7q5Yurd0GNUUneii2I8a8I2sp49zsrR81XgPHQI" for example

odd sparrow
#

Thanks, checking

odd sparrow
rocky shale
#

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?

odd sparrow
#

Ah yes, Checkout doesn't set it on the Customer object – sorry

#

Not in mode: 'subscription' anyway

rocky shale
#

agree, but what about mode setup?

odd sparrow
#

Well the Session object you sent was mode: 'subscription'

#

Have you tested it?