#Yashish

1 messages · Page 1 of 1 (latest)

haughty ospreyBOT
weak rampart
#

You as the merchant would need to re-collect their card and call Stripe API to update the Subscription

ancient nova
#

I am working on Django using strip keys

weak rampart
#

Or you can presents them a Customer Portal and they can update it themselves

ancient nova
#

but I do not want to use Customer Portal

weak rampart
haughty ospreyBOT
ancient nova
#

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

shell estuary
#

what does Stripe postal mean? and what card details do you want to update?

ancient nova
#

redirect the user to the stripe url to update only card details and we can check for events on webhook call

shell estuary
#

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

ancient nova
#

here there are multiple option which we need to follow
?

shell estuary
#

you can try each of them out to see what fits your requirements

ancient nova
#

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.

shell estuary
#

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

Use a supported platform to save card details and charge your customers later.

ancient nova
#

but where the user will be able to add the new card details and how we are going to save it?

shell estuary
#

I recommend you try out the steps in one of those options then you'll better understand how it works

ancient nova
#

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

shell estuary
#

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?

ancient nova
#

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

shell estuary
#

the guide explains everything step by step, which particular step are you having trouble with?

#

at a high level :

  1. you initialize the Element or create a Checkout Session (depending on which method you want to use to collect the card details)
  2. the customer fills in their card details
  3. assuming the setup is successful, you would receive the setup_intent.succeeded webhook event and then you can set the corresponding created payment method id which you can find in that event as the default payment method
ancient nova
#

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

shell estuary
ancient nova
#

but in this where we are asking user for new card details can you please show me

ancient nova
#

any thing what we can do?

haughty ospreyBOT
woven python
#

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

ancient nova
#

no

woven python
#

No?

ancient nova
#

i cam across the way