In this article, we are going to create a WordPress form which allows website owners to collect payments via PayPal payment gateway without writing a singe line of code.
Here’s what you need to do this integration:
You can follow the step by step process as shown below:
Step 1: Install WPForms and PayPal Plugin
Install and activate WPForm ELITE plugin on your WordPress website.
Once this is done, it is time for you to install and activate the PayPal addon.
In this example, we are going to create a form with the billing/order form template.
The template will appear with the default fields.
You can add or remove any field.
However, only one field is mandatory for PayPal to work with WPForms and that is the items field.
Step 2: Adding PayPal to WPForms
Now we can add Paypal to the WPForms we’ve created.
For this, by keeping the form builder open, got to ‘Payments’ and then to ‘PayPal Standards’.
Now check the box labelled ‘Enable PayPal Standard payments’.
Fill out the remaining fields and then tick the box labelled ‘Conditional Logic’.
Step 3: Conditional Logic for Payments
By setting up conditional logic, you can decide when or should a user be taken to PayPal to process the payments.
This way a lot of confusion can be avoided and time can be saved.
After checking the conditional logic page, additional options will appear and you can set the rules there.
In this example, the user will be taken to PayPal only if he is willing to sign up for the workshop.
If not, those fields won’t appear for t=him.
This way, you can choose the path a user is taking on WPForms.
You can also set the fields in which the rule should be applied and also set up trigger words for ease of the user.
Step 4: Testing the Form
You can now test whether your forms are working properly by filling out the form by yourself.
Also, try doing a payment to confirm.