mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-29 19:06:37 +01:00
add lemon squeezy as payment provider (#246)
* add lemon squeezy checkout and webhook * add lemonSqueezy customer portal url * Update AccountPage.tsx * add lemon squeezy total revenue function * update app diff * update app diff * add LS docs * Update PricingPage.tsx * add unified payment processor * unify customer portal url * Update paymentProcessor.ts * update paymentProcessor logic * update app diff to use both payments processors * Update contentSections.ts.diff * finishing touches * Update e2e-tests.yml * remove lemonsqueezy from app diff * Update webhook.ts
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
--- template/app/src/server/scripts/dbSeeds.ts
|
||||
+++ opensaas-sh/app/src/server/scripts/dbSeeds.ts
|
||||
@@ -42,5 +42,8 @@
|
||||
@@ -38,10 +38,12 @@
|
||||
sendNewsletter: false,
|
||||
credits,
|
||||
subscriptionStatus,
|
||||
- lemonSqueezyCustomerPortalUrl: null,
|
||||
- paymentProcessorUserId: hasUserPaidOnStripe ? `cus_test_${faker.string.uuid()}` : null,
|
||||
+ stripeId: hasUserPaidOnStripe ? `cus_test_${faker.string.uuid()}` : null,
|
||||
datePaid: hasUserPaidOnStripe ? faker.date.between({ from: createdAt, to: lastActiveTimestamp }) : null,
|
||||
checkoutSessionId: hasUserPaidOnStripe ? `cs_test_${faker.string.uuid()}` : null,
|
||||
subscriptionPlan: subscriptionStatus ? faker.helpers.arrayElement(getSubscriptionPaymentPlanIds()) : null,
|
||||
|
||||
Reference in New Issue
Block a user