PayLexer for Gravity Forms

By PayLexer

0+ active installationsVersion 1.0.0

Take Gravity Forms payments and subscriptions with Stripe, PayPal, Paystack, Mollie and more, using the gateways you've connected in PayLexer.

Description

Use any gateway you’ve connected in PayLexer to take payments on your Gravity Forms forms: Stripe, PayPal, Paystack, Flutterwave, Mollie, Dodo Payments and more.

A “payment gateway” is the service that takes the customer’s money, like Stripe or PayPal. You connect your gateways once in PayLexer, and this add-on lets customers choose between them on your forms.

What the customer sees

  1. The customer fills in your form and picks how to pay, for example “Stripe” or “PayPal”.
  2. They submit the form and go to that gateway’s own secure payment page to pay.
  3. They come back to your site and see your form’s confirmation message as soon as the payment goes through.

Features

  • A Payment Method field. Add it to any form from Pricing Fields. It lists every PayLexer gateway that accepts your Gravity Forms currency, with its logo, and updates by itself when you connect or remove a gateway.
  • One-time payments and subscriptions. Use Gravity Forms’ own product fields and totals. For subscriptions, set the billing cycle, the number of payments, a setup fee and a free trial in the feed.
  • Nothing goes out before the payment. The form’s notifications, and feeds such as Mailchimp or Zapier set to “Process only when payment is received”, wait until the payment is confirmed.
  • Entries update themselves. Each entry is marked Paid, Failed, Active, Cancelled or Refunded as it happens. Refunds made in the gateway’s dashboard or your PayLexer dashboard are recorded on the entry.
  • Cancel subscriptions from Gravity Forms. Click Cancel Subscription on the entry and the add-on cancels it at the gateway.
  • Payment details on every entry. Each entry shows a “PayLexer Details” box with the customer email, the gateway, the transaction ID and the PayLexer order ID, each with a link.
  • Choose your gateways. Under Forms → Settings → PayLexer, switch each gateway on or off and set it to Test or Live. Test mode makes practice payments with no real money.

What you need

This plugin is an add-on. It works together with two other plugins:

  1. Gravity Forms version 2.7 or later.
  2. PayLexer version 2.0.8 or later, connected to your PayLexer account, with at least one gateway turned on.

You can activate this add-on before they are ready. Until both are installed, active and up to date, the add-on shows a message in your WordPress admin, and it adds nothing to your forms.

This add-on never sees or stores your gateway passwords or API keys. Those stay in your PayLexer account.

Documentation | Supported Payment Gateways | Support

External services

This plugin does not connect to any outside service on its own. It passes payments, subscriptions, cancellations and payment status checks to the PayLexer plugin. PayLexer sends them to the PayLexer service (https://paylexer.com/), and from there to the payment gateway the customer chose.

The add-on sends this data through PayLexer:

  • When a customer submits a form with a payment: the amount, currency, product names and quantities, the form title, the Gravity Forms entry number, and the customer details you map in the PayLexer feed (name, email, phone number and address).
  • When a customer starts a subscription: the same details as above, plus the recurring amount, how often it renews, any free trial, any setup fee and the number of payments.
  • When a customer returns from the payment page: the PayLexer order or subscription reference, to check whether the payment went through.
  • When you cancel a subscription, or a customer leaves a subscription checkout without paying: the PayLexer subscription reference.

Each gateway decides which of these details it uses. Some gateways only use the email address and ask the customer to enter their name and address again on their payment page.

PayLexer also sends messages back to your site (called webhooks) when a payment, renewal, refund or cancellation happens, so the add-on can update the entry.

Your use of the PayLexer service falls under the PayLexer Terms of Service and Privacy Policy. Each payment gateway’s own terms and privacy policy apply as well.

Installation

  1. Install and activate Gravity Forms 2.7 or later.
  2. Install and activate PayLexer 2.0.8 or later. Connect your PayLexer account and turn on at least one gateway.
  3. Go to Plugins → Add New, search for “PayLexer for Gravity Forms”, then install and activate it. You can also upload the ZIP file there.
  4. Edit a form. Add your product fields, an Email field, and a Payment Method field (under Pricing Fields).
  5. Go to Forms → Settings → PayLexer. Switch on the gateways you want customers to see, set each to Test or Live, and save. (Until you save this page, every connected gateway is on, in Test.)
  6. Go to the form’s Settings → PayLexer and click Add New. Choose Products and Services or Subscription, map the Email field (and any other customer details), and save.
  7. To confirm everything is connected, go to PayLexer → General. Under Supported Integrations, Gravity Forms should show as “Activated”.

Using test mode: Test mode only works if you have added the gateway’s test (sandbox) keys in PayLexer. Submit the form with a gateway’s test card to check that the entry is marked Paid, then set that gateway to Live under Forms → Settings → PayLexer.

FAQ

What do I need to use this?

Gravity Forms 2.7 or later, and PayLexer 2.0.8 or later connected to your account. See “What you need” in the Description for details.

Which gateways can I use?

Any gateway that you connect and turn on in PayLexer, as long as it accepts your Gravity Forms currency (Forms → Settings → Currency). See the list of supported gateways.

A gateway doesn’t appear on my form. Why?

Check these four things:

  1. The gateway is turned on in PayLexer.
  2. The gateway is switched on under Forms → Settings → PayLexer. Gateways you connect in PayLexer after first saving that page start switched off.
  3. The gateway accepts your Gravity Forms currency. The settings page marks the ones that don’t.
  4. If every PayLexer feed on the form is a subscription, the gateway supports subscriptions.

If your currency isn’t in Gravity Forms’ Currency list, PayLexer adds the currencies your gateways accept to it.

When are notifications sent?

The form’s “Form is submitted” notifications are sent once the payment is confirmed, not when the form is submitted. If the customer never pays, they are not sent. Notifications for payment events (such as “Payment Completed”) work as usual.

When is an entry marked Paid?

As soon as the payment is confirmed. That happens either when PayLexer notifies your site, or when the customer returns from the payment page and the add-on checks the payment, whichever comes first.

What if the customer cancels on the payment page?

They come back to your form with a message saying the payment was not completed, and can submit again. The entry is marked Failed. If the payment goes through after all, the entry is marked Paid.

Can I refund from Gravity Forms?

No. Gravity Forms has no refund button. Refund in the gateway’s dashboard or your PayLexer dashboard, and the add-on records it on the entry: a full refund marks the entry Refunded, a partial refund is added as a note.

Does it support subscriptions?

Yes. Choose Subscription as the feed’s transaction type.

  • The gateway charges the customer on each renewal date, and each payment is added to the entry.
  • Free trials, setup fees and limits on the number of payments are passed to the gateway. If a gateway can’t offer a trial or charge a fee, the customer sees a message asking them to choose another payment method.
  • Click Cancel Subscription on the entry to cancel it at the gateway.

Does this plugin store card details or gateway keys?

No. Customers enter their card or account details on the gateway’s own payment page, not on your site. Your gateway keys stay in your PayLexer account. The add-on only saves the PayLexer order and subscription references on each entry.

What happens to subscriptions if I turn off this add-on?

Subscriptions keep billing at the gateway even when the add-on is off. While it’s off, Gravity Forms can’t record those renewals. If you plan to remove the add-on, cancel active subscriptions first.

Screenshots

Changelog

1.0.0

  • First release.
  • Adds a Payment Method field listing every gateway connected in PayLexer.
  • Takes one-time payments and subscriptions through the gateway’s own payment page.
  • Holds form notifications and payment-delayed feeds until the payment is confirmed.
  • Records payments, renewals, cancellations and refunds made in the gateway or PayLexer dashboard on the entry.