#enis-checkout-default-pm

1 messages ยท Page 1 of 1 (latest)

tame thorn
#

Hello ๐Ÿ‘‹
AFAIK we don't automatically store the payment method on customer

#

It is likely that the payment method was stored on the subscription itself

#

I tried to update customer with
invoice_settings: {
default_payment_method: event.data.object.default_payment_method,
}.
did you get an error or did that work?

sick pike
#

Everything works fine, only default source is null on customer

sick pike
#

const updatedCustomer = await this.stripeService.updateCustomer(customer.id, {
invoice_settings: {
default_payment_method: event.data.object.default_payment_method,
},
});

#

I tried this way..

tame thorn
#

and? do you not see the payment method on customer.invoice_settings.default_payment_method?

sick pike
#

I get this info. Response:
invoice_settings: {
custom_fields: null,
default_payment_method: 'pm_1LVEiwJ6eUeCLTBYeDYfule6',
footer: null,
rendering_options: null

#

How can I get default_source, I need cardId property example: card_i213sdads

tame thorn
#

you keep referring to default_source but that's not what you're using
Why exactly do you need a card ID? what's the use-case?

sick pike
#

I need to update customer payment card (billing information)..

tame thorn