Skip to content

Commit

Permalink
billing: migration: removed proration behavior (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelecerati authored Aug 15, 2023
1 parent 9dc3f55 commit d346aa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/src/controllers/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ app.post("/subscribe-hackers-to-pay-as-you-go", async (req, res) => {
subscription = await req.stripe.subscriptions.update(
user.stripeCustomerSubscriptionId,
{
proration_behavior: "none",
cancel_at_period_end: false,
items: [
...subscriptionItems.data.map((item) => {
Expand Down Expand Up @@ -655,6 +656,7 @@ app.post("/migrate-pro-user", async (req, res) => {
subscription = await req.stripe.subscriptions.update(
user.stripeCustomerSubscriptionId,
{
proration_behavior: "none",
cancel_at_period_end: false,
items: [
...subscriptionItems.data.map((item) => {
Expand Down

0 comments on commit d346aa7

Please sign in to comment.