Skip to content

Commit

Permalink
👽️ Update Stripe API URLs (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Jul 25, 2023
1 parent 7f0910c commit b0060e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _javascript/stripe/session/donation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export async function createSessionDonation(donation: StripeDonationData): Promi
data.message = donation.message;
}

return await fetchStripe("POST", `${process.env.STRIPE_API}/checkout/session/subscription`, data);
return await fetchStripe("POST", `${process.env.STRIPE_API}/checkout/session/payment`, data);
}
2 changes: 1 addition & 1 deletion _javascript/stripe/session/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export async function createSessionPlan(plan: StripePlanData): Promise<Stripe.Ch
plan: plan.plan
};

return await fetchStripe("POST", `${process.env.STRIPE_API}/checkout/session/payment`, data);
return await fetchStripe("POST", `${process.env.STRIPE_API}/checkout/session/subscription`, data);
}

0 comments on commit b0060e7

Please sign in to comment.