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

@@ -1,4 +1,5 @@
import appConfig from '../../config/app';
import paddleClient from './paddle.ee';
import paddlePlans from './plans.ee';
const paddleInfo = {
@@ -7,6 +8,7 @@ const paddleInfo = {
};
const billing = {
paddleClient,
paddlePlans,
paddleInfo,
};

View File

@@ -0,0 +1,10 @@
import PaddleSDK from 'paddle-sdk';
import appConfig from '../../config/app';
const paddleClient = new PaddleSDK(
appConfig.paddleVendorId.toString(),
appConfig.paddleVendorAuthCode,
appConfig.paddlePublicKey
);
export default paddleClient;