#Yashish
1 messages · Page 1 of 1 (latest)
You as the merchant would need to re-collect their card and call Stripe API to update the Subscription
I am working on Django using strip keys
Or you can presents them a Customer Portal and they can update it themselves
but I do not want to use Customer Portal
Okie, so you can re-collect their card by using the SetupIntent flow https://stripe.com/docs/payments/save-and-reuse
do we need to setup HTML and js for that?
can there be any way we can redirect user to stripe postal to just update the card details
what does Stripe postal mean? and what card details do you want to update?
redirect the user to the stripe url to update only card details and we can check for events on webhook call
If you don't want to use the customer portal, then there's no other Stripe hosted page to redirect the customer to update their card details
here there are multiple option which we need to follow
?
you can try each of them out to see what fits your requirements
I have a situation where a user is subscribed to a monthly subscription that auto-renews, but if they want to update the payment card for this subscription, I am not sure how it can be accomplished. I am still having trouble understanding it.
You can either use the Customer Portal - which you mentioned that you don't want, or...
you can use one of the following methods to collect the customer's payment method : https://stripe.com/docs/payments/save-and-reuse - after collecting the payment method and attaching to the customer, you should either set the default_payment_method on the Subscription or invoice_settings.default_payment_method [0]
[0] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
but where the user will be able to add the new card details and how we are going to save it?
I recommend you try out the steps in one of those options then you'll better understand how it works
but I am unable to find the step where we ask the user for the new card
instead, here user card details are being added only when user does the payment first time
in the guide i provided, the customer isn't making any payment. I don't quite understand why you're mentioning that here user card details are being added only when user does the payment first time?
here We are asking the user to do the payment the first time when a user buys the subscription and stores the payment intent for it.
now if the user wants to update the card for the ongoing subscription in between then how would he be able to do this
I am unable to understand this
can you explain step by step what should I do it
the guide explains everything step by step, which particular step are you having trouble with?
at a high level :
- you initialize the Element or create a Checkout Session (depending on which method you want to use to collect the card details)
- the customer fills in their card details
- assuming the setup is successful, you would receive the
setup_intent.succeededwebhook event and then you can set the corresponding created payment method id which you can find in that event as the default payment method
this all is the method when the user tries to buy the subscription for the first time
but i want to update the card for ongoing subscription
you can use this guide : https://stripe.com/docs/payments/save-and-reuse to save the payment method and update the card for an ongoing subscription
but in this where we are asking user for new card details can you please show me
any thing what we can do?
You'd need to build a UI to collect those payment details from your customer(s) using a Setup Intent. The guide my colleague linked is what you need to follow
no
No?