The PayPal for Digital Goods plugin allows you to generate a PayPal payment button that will let your customers pay for a digital file instantly using an inline/popup window using the PayPal’s in-context express checkout API/Gateway.
The customer will never leave your site to make the payment. The digital file will be given to the user immediately after the payment automatically.
Here is How it Works
You will create a Buy Now button on the landing page of your digital file product using the shortcode provided by this plugin. The button will look something like the following:
When your customers click the Buy button, an inline popup window will open for the payment. See example below:
The customer will get the file download immediately after the payment.
How PayPal’s In-Context Express Checkout Works
The Express Checkout flow keeps the buyer on your web page or mobile app throughout the entire checkout flow. On desktops, buyers check out in a secure lightbox window that overlays your website. On tablets and smart phones, buyers access the PayPal payment screens in a full-page mobile browser.
PayPal for Digital Goods Installation
- Go to the Add New plugins screen in your WordPress admin area
- Click the upload tab
- Browse for the plugin file (paypal-for-digital-goods.zip)
- Click Install Now and then activate the plugin
Click on the PayPal for Digital Goods menu link under your WordPress settings interface to configure the API and settings data.
Specify the currency code and the text for the Buy Button (you can override this text in the shortcode also).
Finally, enter your PayPal API details in the Credentials settings. This page shows how to get your PayPal api credentials.
Getting Your Client ID
Do the following to get your client ID or setup a new one:
- Navigate to My Apps & Credentials and click Log into Dashboard in the top, right corner of the page.
- Scroll down to REST API Apps and click the name of your app to see the app’s details. If you don’t have any apps, create one now:
a. Click Create App.
b. In App Name, enter a name and then click Create App again. The app is created and your client ID is displayed.
- Click the Sandbox / Live toggle to display and copy the client ID for each environment.
Creating the Buy Button
Enter the following shortcode where you want to add the buy button for your digital file.
[paypal_for_digital_goods name="My eBook" price="25" url="http://your-domain.com/my-ebook-file.zip" button_text="Buy Now"]
You can upload your files to your site using the WordPress media uploader. This tutorial will be helpful if you don’t know how you use the WordPress media uploader.
You can add this shortcode anywhere on your site (post, page, sidebar etc) to sell digital files via PayPal in-context express checkout.
Additional Button Customization Options
- btn_type = ‘checkout’,’pay’,’paypal’,’
- btn_size = ‘small’,’medium’,’large’,’
- btn_color = ‘gold’,’blue’,’silver’,’black’
- btn_shape – ‘pill’,’rect’
More WordPress Plugins
Check out our WordPress plugins page for more cool WordPress plugins.