#akii-PaymentMethod

1 messages · Page 1 of 1 (latest)

cunning osprey
#

Hi there, you can set the payment_method to the customer's invoice_settings.default_payment_method

wintry pewter
#

Im doing that but it not getting set as default source

#

Actually, it shows "Default" in dashboard but whenever i call customer.getDefaultSource() it returns null

cunning osprey
#

If you are setting invoice_settings.default_payment_method, then you should get it from invoice_settings.default_payment_method, not getDefaultSource()

#

I'd recommend you to use PaymentMethod instead of Source. We have deprecated Source in favour of PaymentMethod

wintry pewter
#

Ohhh got it now. So to auto debit from card and to use subscriptions , which one should i do?

#

ohkay

cunning osprey
#

You should use PaymentMethod.

#

Are you using Checkout for subscription?

wintry pewter
#

no

cunning osprey
#

What's your integration?