#Rohit89

1 messages ยท Page 1 of 1 (latest)

agile heathBOT
dense tulip
#

๐Ÿ‘‹ happy to help

light hound
#

Thank you

dense tulip
#

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?

light hound
#

Sure. Done!

#

@dense tulip

subscription_update: { default_allowed_updates: ["price", "promotion_code"], enabled: true, proration_behavior: "none", products: [] prices: [] } }

#

Is it something like this?

dense tulip
#

will be with you shortly

light hound
#

Thank you

dense tulip
light hound
#

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.

dense tulip
#
  subscription_update:{
  products:[{
    prices: ["price_xxx"],
    product: "product_xxx",
  }]
}```
light hound
#

If there are two products

products:[{
prices: ["price_xxx"],
product: "product_xxx",
},
{
prices: ["price_xxx"],
product: "product_xxx",
}]

#

Make sense?

dense tulip
#

yes correct

light hound
#

Let me try

dense tulip
#

let me know if you need any more help

light hound
#

It works! thank you

dense tulip
#

let me know if you need any more help

light hound
#

Sure.

light hound
#

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].

fluid solar
#

Hey! Taking over for my colleague. Let me catch up.

light hound
#

sure

fluid solar
light hound
#

I see

#

got it

#

thank you