Paddle.js Setup

Getting setup and ready to use Paddle.js on your website.

Basic Paddle.js Setup

The Paddle.js library can be included in just a few lines of code and has no external dependencies. Following the inclusion of the library, you must call the Paddle.Setup() method with your Paddle Vendor ID.

Please do not self-host Paddle.js, this will prevent you from receiving bug fixes and new features.

Example

<script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script type="text/javascript">
	Paddle.Setup({
		vendor: 1234567
	});
</script>

Note: Your Paddle Vendor ID can be found on the settings page of your Paddle account, within the ‘Integrations’ tab.

Debug Mode

It may be helpful, when developing to enable ‘Debug Mode’. This will enable verbose output of actions and configuration to the browser console each time Paddle.js does something.

To enable debut mode, add the parameter debug with the value true within the JSON object passed to the Paddle.Setup() method.

Example

<script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script type="text/javascript">
	Paddle.Setup({
		vendor: 1234567,
		debug: true
	});
</script>
Next Steps
Once you've added Paddle.js to your website, you're ready to start using Paddle on your website. There's a whole host of functionality available within Paddle.js, but we recommend you start with:
Buttons & Checkout
Checkout Buttons, Overlay Checkout
Audience
Collect user email addresses and build a customer marketing base using Paddle.js
Download Prompts & Buttons
Track downloads with Paddle.js
Was this page helpful?