#tareqpi_code

1 messages · Page 1 of 1 (latest)

pastel wharfBOT
#

👋 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/1354706162720968785

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

coral thunder
#

How can specify the minimum and maximum quantities for the products in the above code?
Could you share what you're trying to achieve here in an example?

scenic tiger
#

the code snippet is part of this function:

private void updateCustomerPortal(Product updatedProduct)

I want the updated product to be part of the billing portal. When I do so the quantity information of all products is not preserved.

#

in the billing portal I have team plan and individual plan. I set the individual plan's minimum and maximum quantity to be 1. For the team plan I set the minimum and maximum quantities to be 3 to 9999999

#

When the updateCustomerPortal function is called, the individual plan's minimum and maximum quantities are no longer set to 1

#

For the team plan it is no longer set to 3 to 9999999 but rather 1 to 9999999

#

This means that the minimum and maximum range that was set before is no longer there for all plans

coral thunder
#

For the team plan I set the minimum and maximum quantities to be 3 to 9999999
Where did you set the minimum and maximum quantity?

#

Could you share the list of request ID that you have performed, so that I can understand your integration better? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request

scenic tiger
#

I have set it from stripe's dashboard, as for the request that updated the customer portal, here is the id:
req_UIR8NWgCw6bF0E

#

Here is also the request that I made when configuring the customer portal from stripe's portal:
req_VPkal981uh4oE6

coral thunder
#

Could you share an Customer Portal URL that you don't see the range as 3 to 9999999?

scenic tiger
#

standard plan should only be 1 not a range from 1 to 9999999

#

and the business plans should not go below 3

coral thunder
#

This is indeed strange and it seems like the customer portal doesn't respect the setting in the billing portal configuration. Can I suggest you writing to support with the link that I share with you later, so that we can check with the relevant team and get back to you? It'll be helpful to include the request ID and example Customer Portal session.

pastel wharfBOT
#

Hello @scenic tiger, we have sent you a direct message, please check it at https://discord.com/channels/@me/1354719455833231460

  • 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
scenic tiger
#

ok

#

thank you