#sumit-customer-defaultpaymentmethod

1 messages ยท Page 1 of 1 (latest)

toxic turretBOT
dreamy sun
#

Hi ๐Ÿ‘‹

Do you have a question about integrating Stripe APIs?

empty zealot
#

I have questions on payment methods of customer

#

My requirement is e.g. one customer can subscribe for multiple products and on every checkout session page he/she can enter the card details, so I want to set default payment method for all subscription that he/she has subscribed.

dreamy sun
#

What is stopping you from doing that?

empty zealot
#

how it will happen for all subscriptions that is already he/she subscribed and if I updated the customer payment method then also it should get applied there...

dreamy sun
#

You would set the Customer's default_payment_method and that will be used by default for all existing Subscriptions

empty zealot
#

how it will happen on checkout session?

dreamy sun
#

You cannot make this happen automatically with the Checkout Session. You will need to handle this in your server-side code

empty zealot
#

in webhook you mean?

dreamy sun
#

As a response to a webhook is where I would recommend adding that logic, yes.

empty zealot
dreamy sun
#

No

empty zealot
#

then ??

dreamy sun
#

If you are creating Payment Methods

empty zealot
#

ok. will check and apply.. Thanks

dreamy sun
#

Happy to help ๐Ÿ™‚