Paddle WP
A basic WordPress plugin for the Paddle checkout.
★ 2stars
6forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lukecav/paddle-wp/archive/refs/heads/master.zipFrom the readme
WordPress Paddle plugin
Import Paddle's javascript library, configure vendor settings and easily create checkout buttons.
Usage, licensing and support
This code is provided as an example plugin to implement the Paddle checkout on a Wordpress site. End users may use or modify the code as required subject to the license included.
Paddle does not provide technical support or maintenance for this plugin or any derivations of it.
Instructions
Upload the plugin as a zipped archive to the WordPress plugins tab
Activate the plugin
Set your vendor ID in the Paddle submenu of the Settings menu
Optionally set a custom selector to specify the element that triggers the checkout on click
Adding a checkout button to your page
To add a standard Paddle-styled button to your page, use the following code, replacing 12345 with the ID of the product you are selling:
To add an unstyled button to your page, you can use:
You may also use a different class or id attribute and update the value of the custom selector above.
Specifying checkout properties
For either of the two above examples, you can specify additional checkout properties by adding data attributes to the tag. For example, to s