#istcf_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1443597502841487520
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there! within Stripe Billing, the Plan (or Price in more current integration types) is the piece that controls the billing structure (i.e. how much the customer is charged, and at what interval)
the payment method is configured at either the Subscription level, or the Customer object level
so it's a case of collecting the new payment method, and then setting it on the Subscription or Customer via the API
https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method
ok, so for the plan, the correct solution is to replace the old plan object with a new plan object with the new amount?
for the payment method, what's the way to change? does the subscription API supports updates for the customer object?
it depends on whether you're saving the payment method at the customer level or at the subscription level
in your existing flow, how are you collecting and saving the customer's payment method?
customer level
to change the amount, i'd recommend checking this guide: https://docs.stripe.com/billing/subscriptions/change-price
I'm creating a payment method for the card token and sending that to the backend and creating a customer object with that payment method.
ok perfect! then to update the payment method, you'd create the token and send it to the backend in the same way, then you'd update the customer and set the new payment method in invoice_settings.default_payment_method
https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method
got it. is it an option in the connected account stripe's dashboard as well? for our customer service?
the payment method change
you mean to key in the customer's payment method details manually?
yea
sometimes the payment method fails and the customer is asking to change the method, like change his credit card.
we generally recommend having the customer update their details via a UI (Stripe hosted, or hosted in your app/site), but yes it is possible to enter card details manually in the dashboard
https://support.stripe.com/questions/manually-entered-card-payments