#budinov-customerportal-prices
1 messages ยท Page 1 of 1 (latest)
@brittle surge Hello! I'm not sure I understand the question exactly. What have you tried/what's not working?
budinov-customerportal-prices
ok, so I on this page i can manually add subscription products to the customer portal session
I want to do the same thing using the stripe API, but I cant find how?
sure, but I dont see any field here related to the "eligible products that customers can update"
it's a bit nested because there are a lot of things you can configure
but hopefully that solves your ask!
it does for sure
hey I have one more question if you are still here ?
does the default portal configuration have ID i can get and update it through the API ?
what have you tried?
Like you can do all of this in Test mode, did you try to list them and see what you get back?
ok yes i think it will do the job, thanks
only now when i try to update the configuration it gives me this error - "Invalid array"
$this->stripeClient->billingPortal->configurations->update(
'bpc_1NgRmKIoheMXsmWO6zsDHJmK',
[
'features' => [
'subscription_update' => [
'products' => [
'product' => 'product_id',
'prices' => [
'price_id_1', 'price_id_2'
]
]
]
],
]
);
with this code. What is the prices array supposed to look like?
If you read the error carefully it tells you the issue is with products not prices right?
it's an array of arrays since you can pass multiple product configuration