#_andriiko
1 messages · Page 1 of 1 (latest)
Stripe processes the payment but doesn't set the card as the default payment method
When creating the Subscription, specify this parameter
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method
What can I do to ensure that the card is linked and becomes the default payment method?
Is there a way for me to display the default card that the user used for payment previously in PaymentElement, or do I need a different implementation?
or make an update on the Subscription to set the PaymentMethod as default one to the Subscription:
https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
You can also set that payment method as default on at the customer's level:
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
Okay, thank you!
And what about PaymentElement? Is it possible to display the default card in the PaymentElement?
There is a beta to display saved PaymentMethod in PaymentElement, you can request access (if applicable) :
https://support.stripe.com/contact
Thank you so much for ur answers❤️