PayPal Checkout

The Ninja Forms PayPal Checkout add-on needs to be installed and activated to see the features mentioned in this this documentation.

Connect PayPal Checkout to your PayPal account

PayPal Onboarding window with options highlighted to connect for live or sandbox authorization

1. Navigate to the PayPal Onboarding option under Ninja Forms in your WordPress dashboard. Here you will be able to connect to your PayPal Business account (or create one) to begin accepting payments live, and/or in sandbox (testing) mode.

2. Click Begin LIVE onboarding authorization to connect the add-on to your PayPal account. This will launch PayPal’s account creation or login sequence. Just follow the steps to login and connect, or create and connect. This step is required to begin taking live payments from customers.

the paypal business signup or login portal opened as a popup with a field for your PayPal email address

3. Click Begin SANDBOX onboarding authorization to connect in the same manner to enable sandbox testing of payments on your forms. This step is optional but recommended. Using sandbox mode on your forms, you will be able to test that payments can complete successfully before a form goes live, or at any time after. This step does not turn Sandbox mode on. Sandbox mode can be enabled/disabled on a per form basis from inside any form (see Configure the PayPal Checkout action section below). This step only enables Sandbox functionality.

Set up a form to take payments

To begin taking payments from a form, you’ll need to add and configure a PayPal Checkout action on that form. The action can be added to as many forms as you like.

Add a PayPal Checkout action

To add the action to any form, from the Emails & Actions tab click Add New Action and then the PayPal action from inside the Actions Window that opens.

image of the Emails and Actions tab of the form builder with Add New action and the paypal action highlighted within the actions window

 

Open the form you want to accept payments from and:

  1. Click on the Emails & Actions tab
  2. Click Add New Action to open the actions window
  3. Click the PayPal Checkout action to add it to your form

Configure the PayPal Checkout action

Once the action has been added to the form, the actions setting window will open automatically. This is where you can configure your new action. You can return to this window at any time by clicking PayPal Checkout from the list of actions on the Emails & Actions tab of the form.

view of the PayPal Checkout settings window

  1. You can change the name of the action here. This is for admin purposes only; only the display name of the action in Emails & Actions will be changed.
  2. Choose here if you want to take a payment of a fixed amount, from a form calculation, or from an user-entered amount. See the Get Total From section below.
  3. Enable the payment types you want to appear for the customer on checkout. Green/switch on the right = enabled, Grey/switch on the left = disabled.
  4. Enable or disable Sandbox mode here. This is for testing only. If it is enabled, your form will not accept payments from customers. Leave disabled to accept live payments, enable if you want to test payment functionality with your PayPal sandbox account.

Get Total From

This setting tells the form how/where to get the total that will be sent to PayPal. In the Get Total From section of the action settings you will see 3 options:

  1. Fixed Amount
  2. Calculation
  3. Field
Fixed Amount

Charging a Fixed Amount

If the total sent to PayPal is a static amount that will never be different from purchase to purchase, select the Fixed Amount Option. Simply enter the amount you wish to charge in the ENTER AMOUNT setting.

When the form is submitted, users will be prompted to pay this fixed amount.

view of the paypal checkout action get total from fixed amount option

Calculation

Using a Calculation to generate a total

If you are charging variable amounts per purchase via a Ninja Forms calculation, that total can be sent to PayPal directly as the amount the user will be charged.

Simply select Calculation from the GET TOTAL FROM setting, and then select the calculation itself in the SELECT CALCULATION dropdown.

When the form is submitted, users will be prompted to pay the calculation’s value.

view of the paypal checkout action get total from calculation option

Field

Using a form field as the total sent to PayPal

If your purchase total is contained within a field such as a Number field, you can have the value of that field sent directly to PayPal.

Simply select the Field option from the GET TOTAL FROM setting, and then select the field that houses your total from the SELECT FIELD dropdown.

When the form is submitted, users will be prompted to pay the field’s value.

view of the paypal checkout action get total from field option

Migration to PayPal Checkout from PayPal Express

If you are a currently using the PayPal Express add-on for Ninja Forms and need to migrate to PayPal Checkout, please follow the below steps. If you are a new PayPal Checkout customer, you can safely disregard the steps below.

  1. Install/activate the PayPal Checkout add-on
  2. Go to Ninja Forms > PayPal Onboarding and complete onboarding
  3. One form at a time, open first PayPal form, add Checkout action, set it up, double check that any logic targeting old Express action is now targeting new Checkout action, disable PayPal Express action
  4. Test form in sandbox mode; after confirming it functions as expected, switch the form to ‘live’ mode to start accepting payments using the new PayPal Checkout
  5. Repeat steps 3 & 4 for each PayPal form
  6. Return to Ninja Forms > PayPal Onboarding and confirm that no forms are listed as still using PayPal Express
  7. Deactivate the PayPal Express add-on

If you need help at any stage, please contact us. We’re happy to assist!