Paddle Billing is a merchant of record for selling digital products and subscriptions. It takes care of payments, global tax compliance, fraud prevention, localization, and subscriptions. Here’s how to switch the default payment processor from Stripe to Paddle Billing.
After you have created your account for Paddle, you will need to get the API key. You can do this by going to the API page in the dashboard. Here you will find the Secret key and the Publishable key. You will need the Secret key for the integration to work.
To use the Paddle integration, you need to define the following environment variables to your .env.local as well as your production environment:
.env.local
Copy
PADDLE_SECRET_KEY=PADDLE_WEBHOOK_SECRET=PADDLE_ENV="" // Use 'sandbox' if you're using the sandbox environment - else use 'production' or omit the parameter