
Introduction
The WordPress PayPal Link Plugin is a WordPress plugin that allows you to accept payments on your WordPress website using PayPal. It provides a seamless payment solution for selling products, accepting donations, or collecting fees. This documentation provides instructions on how to install, configure, and use the PayPal Link Plugin effectively.
Table of Contents
Installation
To install the PayPal Link Plugin, follow these steps:
- Download the plugin from the official website.
- Login to your WordPress admin dashboard.
- Navigate to “Plugins” > “Add New”.
- Click on the “Upload Plugin” button.
- Choose the plugin file you downloaded and click “Install Now”.
- Once the plugin is installed, click on the “Activate” button to activate the plugin.
Plugin Overview
The PayPal Link Plugin integrates PayPal payment functionality into your WordPress website. It allows you to create payment forms with customizable amount and currency options. When a user submits a payment form, the plugin securely processes the payment through PayPal.
The plugin is developed using PHP and utilizes the PayPal REST API for payment processing. It requires WordPress version 5.0 or later and PHP version 5.2 or later.
Create the success, cancel, and payment form pages
When you activate the PayPal Link Plugin, it automatically creates the necessary pages for the payment success, payment cancel, and payment form. However, if you prefer to create your own custom pages, you can follow these steps:
- Create a new page for the payment success page. Set the URL of the page to “PaymentSuccess” (without quotes) and add the following shortcode: [payment_success]
- Create a new page for the payment cancel page. Set the URL of the page to “PaymentCancel” (without quotes) and add the following shortcode: [payment_cancel]
- Create a new page for the payment form. Add the following shortcode: [payment_paypal_form]
By creating these pages with the respective shortcodes, you can customize the content and layout of the payment success, payment cancel, and payment form pages according to your preferences.
Remember to save the changes after adding the shortcodes to the pages. Once you’ve created these pages, they will be used by the PayPal Link Plugin to handle the corresponding actions and display the appropriate content to your users.
Note: Make sure the page URLs for the payment success and payment cancel pages match the ones mentioned above (“PaymentSuccess” and “PaymentCancel”) to ensure proper functionality.
If you have any further questions or need assistance, consult the plugin’s documentation or reach out to the plugin’s support team for further guidance.
Shortcodes
The PayPal Link Plugin provides the following shortcodes to embed payment forms and display success or cancellation messages:
[payment_paypal_form]
This shortcode displays a payment form where users can enter the amount and currency for the payment. It can be placed on any page or post.
Example usage:
[payment_paypal_form]
[payment_success]
This shortcode displays a success message when a payment is successfully processed. It is typically used on the “PaymentSuccess” page.
Example usage:
[payment_success]
[payment_cancel]
This shortcode displays a cancellation message when a payment is canceled by the user. It is typically used on the “PaymentCancel” page.
Example usage:
[payment_cancel]
Plugin Settings
The PayPal Link Plugin provides a settings page where you can configure the PayPal environment and enter your PayPal client ID and secret key. Follow the instructions below to access the settings page and configure the plugin:
- Login to your WordPress admin dashboard.
- Navigate to “PayPal Link” in the left-hand menu.
- On the settings page, you will see the following options:
- PayPal Environment: Select either “Sandbox” or “Live” environment for PayPal API calls.
- PayPal Client ID: Enter your PayPal client ID obtained from the PayPal developer dashboard.
- PayPal Secret Key: Enter your PayPal secret key obtained from the PayPal developer dashboard.
- Click the “Save Changes” button to save your settings.
Note: To obtain a PayPal client ID and secret key, refer to the instructions provided by PayPal.
Transaction Management
The PayPal Link Plugin manages transactions and stores relevant information in the WordPress database. Each transaction includes details such as the payment ID, amount, currency, and status.
The plugin creates a table called wp_transactions
to store transaction data. You can view and manage transactions using the following methods:
Viewing Transactions
To view the list of transactions, follow these steps:
- Login to your WordPress admin dashboard.
- Navigate to “PayPal Link” in the left-hand menu.
- Click on “Transactions” in the sub-menu.
- You will see a table displaying the transaction data, including the payment ID, amount, currency, status, and date.
- You can use the search and filter options to find specific transactions based on various criteria.
- To view more details of a transaction, click on the “View” button next to the transaction.
- This will open a detailed view of the transaction, showing additional information such as the payer’s email, transaction ID, and payment method.
- From the detailed view, you can also refund a transaction if necessary.
Note: The transaction management features may vary depending on the specific version of the PayPal Link Plugin you are using. Refer to the plugin’s documentation or support resources for more detailed instructions.
Conclusion
The PayPal Link Plugin offers a convenient way to accept payments on your WordPress website using PayPal. With its integration features, transaction management capabilities, and customizable payment forms, it provides a seamless payment solution for various use cases.
Frequently Asked Questions
Can you customize the appearance of the payment form?
Yes, we can customize the appearance of the payment form to meet you needs. Just contact us via plugin@hirewordpressdeveloper.org, and one of our team will contact you
Can I use multiple PayPal accounts with the plugin?
The plugin allows you to configure a single PayPal account using your PayPal client ID and secret key. If you need to use multiple PayPal accounts, you may need to customize the plugin or seek assistance from a developer. Note, we are rolling out soon updated plugin with the feature with multiple PayPal accounts .
Is it possible to track payments and send notifications to users?
The plugin automatically tracks payments and stores transaction data in the WordPress database. However, sending notifications to users may require additional customization or integration with an email notification plugin. Note, we are rolling out soon updated plugin with the feature with tracking payments and send notifications to users .
Can I add custom fields to the payment form?
Currently, the PayPal Link Plugin does not provide a built-in feature to add custom fields to the payment form. If you require custom fields, you may seek assistance from a developer via plugin@hirewordpressdeveloper.org.
How can I troubleshoot issues with the plugin?
If you encounter any issues with the PayPal Link Plugin, you can try the following troubleshooting steps:
1. Ensure that you have entered the correct PayPal client ID and secret key in the plugin settings.
2. Check if there are any conflicting plugins or themes that may be causing a conflict.
3. Review the plugin’s documentation and support resources for common issues and solutions.
4. Contact the plugin’s support team via plugin@hirewordpressdeveloper.org.