This project is a starter for a Saas application that uses Paddle for recurring payments. Please visit https://paddle.com for more information about Paddle.
Live application: https://readingmore.dev/
Install dependencies:
yarnCreate a .env file (you can copy from .evn.example) and add Paddle vendor ID, Paddle public key and other environment variables:
PADDLE_URL=https://sandbox-vendors.paddle.com/api/2.0
PADDLE_VENDOR_ID=
PADDLE_VENDOR_AUTH_CODE=- Note that if you are using the sandbox, you will need to use the sandbox vendor ID and public key.
PADDLE_URLin production should behttps://vendors.paddle.com/api/2.0
Start the application:
yarn run devPaddle will send webhooks to your application when a subscription is created, updated, cancelled, etc. In this project we set the webhook URL to http:localhost:4000/v1/paddle/webhook.
However, Paddle will not send webhooks to localhost. To test webhooks, you can use Localtunnel.
npm install -g localtunnel
lt --port 4000This project is a starter for a Saas application using Paddle for recurring payments. However, it does not include all features that a Saas application may need.
This project is licensed under the MIT License. See the LICENSE file for details.