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:
vincanger
2024-09-09 11:32:42 +02:00
committed by GitHub
parent 09b60a30bd
commit cb3d75c0b6
60 changed files with 1255 additions and 444 deletions

View File

@@ -0,0 +1,11 @@
--- template/app/src/payment/stripe/paymentProcessor.ts
+++ opensaas-sh/app/src/payment/stripe/paymentProcessor.ts
@@ -21,7 +21,7 @@
id: userId
},
data: {
- paymentProcessorUserId: customer.id
+ stripeId: customer.id
}
})
if (!stripeSession.url) throw new Error('Error creating Stripe Checkout Session');