-
On our app, we want to charge per seat per user for the billing period. This logic is nearly implemented, except for this scenario below:
Before this scenario came up, we had naively implemented by updating the quantity of current subscription like below: current_subscription.change_quantity(team.users_count, proration_behavior: 'none') However, if we follow this logic, the second step will reduce the quantity of current subscription to 2, and in the third step, we will charge the customer again, even though there are actually be 3 seats. From what I read in the Stripe docs, it seems the Stripey way to implement such a feature is by using Stripe's Subscription schedules API. As this API is not covered by pay gem, I am wondering if anyone has ever implemented such a feature using pay + Stripe gems? Or do you have any suggestions regarding this feature? Here is the example of increasing quantity via scheduling API: https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#increasing-quantity |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use the Stripe API directly for those pieces that Pay doesn't handle. |
Beta Was this translation helpful? Give feedback.
You can use the Stripe API directly for those pieces that Pay doesn't handle.