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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
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.
All reactions