#muhammad-adnan_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/1430860246674313298
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- muhammad-adnan_api, 1 hour ago, 12 messages
- muhammad-adnan_api, 1 day ago, 11 messages
This is controlled by the proration_behaviour on the portal config. Set this param to none: https://docs.stripe.com/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-proration_behavior
can you send me exact curl command for this setting
I can't, but shouldn't be too hard to figure out using the curl examples on the page
ok
still is is detuct the money next month but i want it ti charge the amount as soon as user update the subscription.
i set these parameters
--data-urlencode 'features%5Bcustomer_update%5D%5Ballowed_updates%5D%5B%5D=email'
--data-urlencode 'features%5Bcustomer_update%5D%5Ballowed_updates%5D%5B%5D=tax_id'
--data-urlencode 'features%5Bcustomer_update%5D%5Benabled%5D=true'
--data-urlencode 'features%5Binvoice_history%5D%5Benabled%5D=true'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproration_behavior%5D=none'
--data-urlencode 'features%5Bsubscription_update%5D%5Benabled%5D=true'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B0%5D%5Bproduct%5D=prod_SlHUrmj0ByBC4e'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B0%5D%5Bprices%5D%5B%5D=price_1RpkvhL8iMN1J8cYWrqSWmEG'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B0%5D%5Bprices%5D%5B%5D=price_1RpkvhL8iMN1J8cY5KWpHoQV'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B1%5D%5Bproduct%5D=prod_SlHXLjxzacarj6'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B1%5D%5Bprices%5D%5B%5D=price_1RpkzpL8iMN1J8cYuhXA9ZvT'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B1%5D%5Bprices%5D%5B%5D=price_1RpkzpL8iMN1J8cYKKrfzDRU'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B2%5D%5Bproduct%5D=prod_SlHRsuko6ccJDO'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B2%5D%5Bprices%5D%5B%5D=price_1RpkstL8iMN1J8cYy0aouVbZ'
--data-urlencode 'features%5Bsubscription_update%5D%5Bproducts%5D%5B2%5D%5Bprices%5D%5B%5D=price_1RpkstL8iMN1J8cYppK2vd6g'
--data-urlencode 'features%5Bsubscription_update%5D%5Bdefault_allowed_updates%5D%5B%5D=price'
--data-urlencode 'features%5Bsubscription_update%5D%5Bdefault_allowed_updates%5D%5B%5D=promotion_code'
--data-urlencode 'features%5Bpayment_method_update%5D%5Benabled%5D=true'
What's the ID of the portal session (bps_xxx)?
Is this update to a price of the same interval? e.g. monthly -> monthly
yes it is monthly to monthly but plan is updating from bronze to silver
Can you share this please. Will be in the response to your API call
Thanks. I understand the ask now and unfortunately what you want to do is not supported today in the portal. The default behaviour is to only charge immediately when the interval changes. I'll relay your feedback with the product team