andrewculver / koudoku

Robust subscription support for Rails with Stripe.
MIT License
1.16k stars 187 forks source link

Error: You cannot set the quantity for metered plans #204

Open Kashoid23 opened 4 years ago

Kashoid23 commented 4 years ago

We have used Koudoku gem with BulletTrain.

We've faced the issue within creation Subscriptions with "metered usage" and "pricing over limits". There is 'quantity' parameter that is sent from koudoku/app/concerns/koudoku/subscription.rb to Stripe. Stripe doesn't support this parameter for the metered plans and the Subscription can not be created/updated. Stripe returns error "You cannot set the quantity for metered plans".

Could you please remove every 'quantity' parameter from koudoku/app/concerns/koudoku/subscription.rb in bullet-train branch as it's useless