feat: Verify paddle webhooks

This commit is contained in:
Faruk AYDIN
2023-03-21 22:02:11 +03:00
parent 4202f963c3
commit e1d26325f3
9 changed files with 201 additions and 8 deletions

View File

@@ -41,6 +41,7 @@ type AppConfig = {
isCloud: boolean;
paddleVendorId: number;
paddleVendorAuthCode: string;
paddlePublicKey: string;
licenseKey: string;
sentryDsn: string;
};
@@ -111,6 +112,7 @@ const appConfig: AppConfig = {
isCloud: process.env.AUTOMATISCH_CLOUD === 'true',
paddleVendorId: Number(process.env.PADDLE_VENDOR_ID),
paddleVendorAuthCode: process.env.PADDLE_VENDOR_AUTH_CODE,
paddlePublicKey: process.env.PADDLE_PUBLIC_KEY,
licenseKey: process.env.LICENSE_KEY,
sentryDsn: process.env.SENTRY_DSN,
};