PaddleHQ / paddle-js-wrapper

Wrapper to load Paddle.js as a module and use TypeScript definitions when working with methods.
Apache License 2.0
38 stars 6 forks source link

[Feature]: Option to disable quantity change #55

Open RakeshPotnuru opened 3 weeks ago

RakeshPotnuru commented 3 weeks ago

Tell us about your feature request

Option to disable quantity change

What problem are you looking to solve?

Currently, there's no option to disable customers from changing quantity.

Additional context

Weirdly I found that there's an option called allowQuantity here https://paddle.stoplight.io/docs/reference/5e0171ec215eb-checkout-parameters but it's not

image

How important is this suggestion to you?

Important

heymcgovern commented 3 weeks ago

Hey @RakeshPotnuru 👋

Thanks for dropping by with a feature request. The docs you've found are for Paddle Classic, which uses a different version of Paddle.js. Paddle Classic only supports single-product checkouts, and they can't be updated once opened, so the allowQuantity parameter makes sense here.

With Paddle Billing, you can open checkouts for multiple items, and add, remove, and update those items during the checkout process. This adds complexity to implementing a similar parameter in Paddle Billing.

This feedback has come up before, so I chatted with the PM who heads up checkout to let them know it's something you're interested in too. We'd love to hear more about why you're looking to do this and any thoughts on how you see it working — feel free to pop back and let us know, or you can email us directly at team-dx@paddle.com.

In the meantime, here are a few things you can do:

You can learn more in our docs: Prevent changes to items on a checkout.

-- Michael

RakeshPotnuru commented 3 weeks ago

Thanks for letting me know. Yes, setting min and max to the same value works. Setting quantity for a recurring subscription for a SaaS didn't make sense as it seemed like subscribing to a plan multiple times, that's why I asked.