#nicolas
1 messages ยท Page 1 of 1 (latest)
Hello again
So there are two places that the default payment method can be set: on the subscription and on the customer
If it is set on the customer, it will show up on that dashboard page and will be used for all subscriptions that do not have a default payment method set themselves
so, two questions :
If it is set on the subscription, it will be used for all of the subscription's invoices and will renew properly
we are using Stripe Checkout, can we influence that choice ?
Is-it important for it to be set on the Customer or the Subscription ?
Which choice are you trying to influence? Where this gets set? Or are you just trying to ensure the same PM is used for future subscriptions
Either option works, it is more a question of what makes more sense for your integration
both ? ๐
We moved to Stripe Checkout to reduce the churn and payment error
We've seen the difference in the customers list page, and wondered the influence for us
also, when we create a Stripe Checkout session to update the payment info, the old one is not presented to the user.
So Checkout can't directly set the default payment method on the customer but you can listen to webhook events, check the default PM that Checkout set on the subscription, and set that as the default for the customer
So to clarify, user completes a checkout session and inputs card_123, if they complete another session and add card_456 are you saying that you now want card_456 to be the default for all of the existing subscriptions?
My first question was related to the fact that when using Stripe Checkout there was no default payment method listed for the Customer. The payement info is attached to the Subscription. Can we change this when creating the Stripe Checkout session ?
No, that is what this message was trying to speak to:
So Checkout can't directly set the default payment method on the customer but you can listen to webhook events, check the default PM that Checkout set on the subscription, and set that as the default for the customer
Checkout can't set the payment method that is listed for the customer but you can easily have a webhook event handler that automatically does this when your checkout sessions end
Ok. sorry
From what I've understood, though, the Payment Info can be attached on the customer or the subscription, and it will not influence the subscription renewal (monthly or annual) ?
Also, is-there a webbook event when a payement Info expiration date is approaching (when it's a credit card)
Correct, the subscription will renew either way. The difference is in what payment method certain subscriptions use. Basically imagine a customer with two saved payment methods, card_a and card_b with their invoice_settings.default_payment_method set to card_a, they then have two subscriptions, sub_1 and sub_2.
sub_1 does not have its default_payment_method set at all, so when it renews it uses the customer' default of card_a
sub_2 has its default_payment_method set to card_b this will override the customer default so card_b will be used when sub_2 renews
Unfortunately there is not an event like that, we do attempt to update the card details automatically but unfortunately we don't sent out a webhook about the pending expiration https://stripe.com/newsroom/news/network-tokens-card-account-updater