#Rohit89
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Thank you
moving the rest of the Q here
I have three products in test mode. I want to configure two products with monthly/yearly price when someone open billing portal.
Can someone help me, please?
would you mind removing it from the main channel please?
Sure. Done!
@dense tulip
subscription_update: { default_allowed_updates: ["price", "promotion_code"], enabled: true, proration_behavior: "none", products: [] prices: [] } }
Is it something like this?
will be with you shortly
Thank you
it's more like this https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah this what I shared above, how to pass products and prices? If I have two products that will go under products?
And each product has 2 prices.
subscription_update:{
products:[{
prices: ["price_xxx"],
product: "product_xxx",
}]
}```
If there are two products
products:[{
prices: ["price_xxx"],
product: "product_xxx",
},
{
prices: ["price_xxx"],
product: "product_xxx",
}]
Make sense?
yes correct
Let me try
let me know if you need any more help
It works! thank you
let me know if you need any more help
Sure.
Stripe::BillingPortal::Configuration.create({ features:{ customer_update:{ allowed_updates: ['email', 'tax_id'], enabled: true, }, payment_method_update:{ enabled: true }, subscription_cancel:{ enabled: true, mode: "at_period_end", proration_behavior: "none" }, subscription_update: { default_allowed_updates: [], enabled: false, proration_behavior: "none", }, invoice_history: {enabled: true} }, business_profile: { headline: "Test." }, })
I am trying this where I set enabled: false for subscription_update
but it says Missing required param: features[subscription_update][products].
Hey! Taking over for my colleague. Let me catch up.
sure
Yeah the property features.subscription_update.products.product is required, you need to set the list of products that support subscription updates.
https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products