feat: Implement getPaddleInfo graphQL query

This commit is contained in:
Faruk AYDIN
2023-03-21 00:55:27 +03:00
parent 46dbe009f2
commit 040ad9edb0
4 changed files with 24 additions and 0 deletions

View File

@@ -90,6 +90,11 @@ const createPaymentPortalUrl = async (user: User) => {
return userSession.url;
};
const paddleInfo = {
sandbox: appConfig.isDev ? true : false,
vendorId: appConfig.paddleVendorId,
};
const billing = {
createSubscription,
createPaymentPortalUrl,
@@ -97,6 +102,7 @@ const billing = {
stripe,
plans,
paddlePlans,
paddleInfo,
};
export default billing;