#skammerens-datter_api

1 messages ¡ Page 1 of 1 (latest)

sudden frostBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1265281399842410557

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

latent coyoteBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

midnight wasp
#

hi there!

#

so you have an active Subscription, and you want the user to change theiir payment method?

golden moon
#

I want to enable them to do so, for example if their payment declines for the next billing cycle

#

I have implemented everything else tightly tied together with our SaaS product, so this I would prefer to be the same as well

#

We use Elements and the rest is API calls

midnight wasp
#

then yes the Customer Portal would work for this. otherwise you would use a SetupIntent + Payment Element to collect a new payment method, and then set it as default for the Customer or Subscription.

golden moon
#

is there a guide anywhere for that? I am using a payment element now, and a setupintent, but the process is a bit convoluted, since I wish to only change the payment method of the subscription, not the customer

midnight wasp
golden moon
#

Okay, I'll try those steps. If I run a simple subscription update of the default_payment_method, will I have to set proration behaviour and other properties in that call to retain the subscription's properties set when it was created with the API - or will Stripe keep those properties as is, if not submitted in the update?

midnight wasp
#

you would only update the default_payment_method.

golden moon
#

okay, great - I was under a different impression from a previous talk with someone else

midnight wasp