#devangbhuva97-subscriptions
1 messages · Page 1 of 1 (latest)
@vital kindle probably! It depends how you set things up.
the subscription will bill its default_payment_method if that's set, or the customer level's invoice_settings[default_payment_method] if the subscription level is not set
so it depends how you add/remove the payment methods and how you set up the subscription and tell it which card to charge
https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method // https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
If we have configured payment method in both places. Now subscription payment method will be detached, it'll charge from customer's default payment method. Right?
well it depends, since you detach the PM from the customer really
What are the best practices to prevent duplicate cards in customer?
Yes.. there will be new payment intent for same card as customer invoice default payment method
the best practise is to check the fingerprint and compare against saved cards yep
If previous abcd card stored as setup_future_usage & if next time customer enter same card, then can we use existing payment intent method instead of new payment intent method for charge? One edge case I'm able to see is if card expiry changed with same card number?
each charge is a separate PaymentIntent, you never really re-use them
Sorry I mean payment _method
then I think that sounds good
Yes.. but what about card expiry change? Will be that fingerprint same?
the fingerprint is only based on the number so it doesn't change if two cards have the same number and different expiry dates