The Stripe add-on needs to be installed and activated to see the features mentioned in this this documentation.

Note: Make sure your website meets Stripe security standards before use

Stripe has specific HTTPS and TLS security standards that your website must meet to be able to use their service to collect payments. If your website does not meet these security standards, you will not be able to communicate payment information to the Stripe service. Please see their documentation for details. If you have questions about your WordPress website meeting these standards, please contact your hosting provider.

Stripe API Credentials

The first step to using Stripe with Ninja Forms is getting your API credentials. Please see the guides below for assistance.

Getting Your Stripe API Credentials

You can find your API credentials in your Stripe dashboard.

Place every key into the Stripe settings under Ninja Forms > Settings > Stripe

Collecting Payment With Stripe

Note: Credit card fields have been deprecated in the builder as of v3.0.13 (12 February 2018). These fields will now appear in the Stripe Checkout modal automatically and do not need to be added to the form.

There are many ways to collect Stripe payments with Ninja Forms Stripe.  You can have

  • A fixed payment on each form where every user pays the exact same amount
  • A dynamic payment (changes per user based on quantity or other factors)
  • Add a user to a recurring payment plan

To get started, in the form builder, open your “Emails and Actions” menu and click “Add New Action.”

Choose the “Collect Payment” action

Choose "Collect Payment" Action

Choose “Stripe” as your payment gateway.

Custom Calculations

Everyone pays the same amount (Such as an event registration with a set fee)

To charge everyone who completes your form the same amount, simply type the amount into “Payment Total” in the “Collect Payment” action.  You may also send the user’s email address (from user meta OR form field) by using the merge tag icon to add form data.

Stripe Recurring Payments
First, make sure to set up your recurring payment plan in Stripe.

You’ll need the product’s Payment Plan ID from Stripe. In Stripe:

  • Navigate to Billing > Products
  • Select your product
  • Under that product’s Settings, select a pricing plan
  • In that plan’s settings, copy the Payment Plan ID

Once you have your Payment Plan ID, simply add it to a new payment action.

When the user completes the form, they will be subscribed to your recurring payment plan.

You can change between Live and Test Mode keys under the Advanced Settings of the Stripe / Collect Payment Action.

Stripe also provides a list of test credit cards that you can use:

Test Card Example: