Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make line item quantities adjustable for the Firestore Stripe Payments Web SDK #383

Open
BenJackGill opened this issue Apr 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@BenJackGill
Copy link

BenJackGill commented Apr 30, 2022

Feature request

Is your feature request related to a problem? Please describe.

Customers cannot adjust quantities during checkout because there is no way to enable adjustable quantity when calling the createCheckoutSession function.

Describe the solution you'd like

Currently createCheckoutSession accepts line_items, which has properties of price, quantity, and description.

I would also like to add the adjustable_quantity property to line_items as described here so customers can adjust line item quantity during checkout.

For example:

line_items: [
  {
    price: priceId,
    description: 'Buy this thing',
    adjustable_quantity: {
      enabled: true,
      minimum: 1,
      maximum: 10
    }
    quantity: 1,
  },
],

Describe alternatives you've considered

I could create my own function, but that would be more fragile and also defeats the purpose of using the Firestore Stripe Payments Web SDK which is supposed to abstract these things away.

@jsteele-stripe jsteele-stripe self-assigned this Jul 27, 2022
@jsteele-stripe jsteele-stripe added the enhancement New feature or request label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants