#boisebrewer
1 messages · Page 1 of 1 (latest)
Hola @elfin terrace. 🤓
I'm using the Stripe PHP package.
Here's an example of what I'd like to do...
You would have to use the Billing Portal to give your customers the ability toupdate their subscriptions: https://stripe.com/docs/no-code/customer-portal
In this example, I'd like to update the quantity of the first item, delete or set quantity to 0 for the second and add a new item in the third.
I should mention, this is for a Connect account.
If I enable the ability to manage quantities, that would give them the ability to change the quantities manually, right? Even outside of a billing portal session that I create? I don't want that.
Nope. If you only give them the option to use the Billing Portal, then they can only use the Billing Portal
So am I on the right track with the psuedo code above? I haven't found API docs that specifically document how to do that, so I'm kind of taking a stab at it.
So you want an API solution to make the update to the customer's subscription?
Yes and no.
Yes, in that I'm using the Stripe PHP package to create the billing portal session.
No, in that, I'm not trying to make the changes to the subscription via the API.
I'm trying to create a billing portal session that reflects the proposed changes and have the user confirm them in the billing portal. (ie type = 'subscription_update_confirm').
Again, this is for a Connect account, so I manage their portal configurations programattically.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Essentially, I'm asking if what I'm trying to do it possible with this parameter.
I have the beta functionality enabled for updating multiple items.
That's not how the billing portal works. You don't propose changes on it. You give them the option to upgrade/downgrade and/or change quantity.
As for the beta side of this product, we unfortunately cannot help with beta products via this chat. In order to get support for that, you would need to reach out to our support folks and let them know you're in the beta so they can route you to the product team responsible for helping you.