🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Paysera Premium Add-on Setup Guide

Updated 7 min read Gravity Forms Integrations A–Z
On this page
  1. What you need
  2. Install and activate
  3. Connect your Paysera project
  4. Add a feed to your form
  5. How a payment works
  6. Paysera statuses
  7. Refunds
  8. Subscriptions
  9. Test and Live
  10. For developers
  11. Troubleshooting
  12. Privacy

The Gravity Forms Paysera Premium Add-on takes payments with your forms through Paysera Checkout. When a visitor submits the form, the add-on builds a signed Paysera payment request for the exact total Gravity Forms worked out on the server and sends the visitor to the secure Paysera payment page. The visitor pays there with a bank link, a card, a Paysera account or another method your project offers, so payment details never reach your website. Paysera then calls your site with the result, and the add-on checks Paysera’s RSA signature, the project, the order, the amount, the currency and the mode before the entry changes.

This guide covers the setup, the feed, payments, the Paysera statuses, refunds and going live. The add-on costs one site $49 a year, five sites $69 a year, unlimited sites $199 a year.

What you need

  • WordPress 6.5 or newer, PHP 7.4 or newer (with the openssl extension) and Gravity Forms 2.9 or newer.
  • A Paysera business account with a project for your website. In Paysera, order the online payment collection service, create the project in Projects and Activities, verify your domain and send the project for checking. Test payments work before the project is checked.
  • The project ID and the project password (General project settings of the project).
  • The Gravity Forms currency set to a currency with two decimals, such as EUR. Paysera converts the amount on its page when a payment method needs another currency.
  • Your site public and on HTTPS, so Paysera can reach the callback address.
  • A form with at least one product field (or a total).

The add-on sends customers to www.paysera.com/pay/ and reads two public addresses on paysera.com: Paysera’s public key, which checks the callbacks, and the list of payment methods of your project. Apart from that, it checks gravityextra.com for your licence and plugin updates.

Install and activate

  1. Upload the zip in Plugins → Add New → Upload Plugin and activate it.
  2. Open Forms → Settings → Paysera, enter your GravityExtra licence key and press Activate License.
  3. The Paysera project section appears once the licence is active. Payments and callbacks work only with an active licence.

Connect your Paysera project

Paysera settings: Test or Live mode, the project ID and project password, the EUR currency line, the project-ready line with the masked password, the loaded Paysera public key with its fingerprint, the payment methods of the project and the callback address
Settings: choose Test or Live and save your project ID and project password. The add-on loads Paysera’s public key and the payment methods of your project.
  1. Leave Mode on Test for now, and turn on Allow test payments in the project settings in Paysera.
  2. Paste the project ID and the project password.
  3. Save. The Project line turns green with the masked password. The password is stored encrypted and never shown again.
  4. The add-on loads Paysera’s public key and shows its fingerprint, and lists the payment methods of your project for the form currency.

There is nothing to set up for the callback in Paysera: the add-on sends the callback address with every payment. The Callback address field only shows it, with the time of the last accepted callback.

Add a feed to your form

The Paysera feed: products and services with the form total, first name, last name, e-mail and country mapped, the payment purpose, the payment method list, the Paysera page language and the notification option
The feed: map the billing fields, set the payment purpose and, if you like, send customers straight to one payment method.
  1. Open the form, then Settings → Paysera → Add New.
  2. Choose Products and Services, usually with the Form Total.
  3. Map the first name, last name and e-mail; Paysera shows them to the payer. Map a country field if you have one: Paysera then shows the payment methods of that country first.
  4. Set the payment purpose, shown to the customer and kept with the payment in Paysera. Merge tags work, for example Booking #{entry_id}.
  5. Leave Payment method to the customer, or send everyone straight to one method of your project, such as cards or a bank link.
  6. Choose the Paysera page language, or keep the site language.
  7. Keep Send form notifications only after the customer has paid ticked, so your booking e-mails go out for paid entries only.
A rowing lesson booking form with name, e-mail, country, lessons and boat hire with quantities, the total in euro and the Continue to payment button
The form your customer fills in. The payment itself happens on the Paysera page, not here.

How a payment works

  1. The visitor submits the form. Gravity Forms works out the total on the server, and the add-on builds the Paysera request for that amount in cents with a unique order number for the entry. The request is signed with your project password.
  2. The visitor goes straight to the Paysera page and pays there.
  3. Paysera calls the callback address with the result. The add-on checks Paysera’s RSA signature with the public key, then the project, the order, the amount, the currency and the test or live mode. Only then is the entry marked Paid, and the add-on answers Paysera with OK.
  4. The visitor comes back to the form page and sees your confirmation. If the callback has not arrived yet, the page waits and checks again by itself.

The return page never marks an entry paid on its own

Anyone can open the return address. The entry changes only through a message signed by Paysera that matches the entry: the callback, or the same signed result when Paysera attaches it to the return address. A repeated callback never pays twice.

Paysera statuses

Status from Paysera What the entry shows
1, payment successful Paid, with the Paysera request number, the payment method and how the callback was checked
2, order accepted, not yet paid Pending and a note; for example a bank transfer that is on its way
3, details of the payer A note with the payer name and account; the status does not change
0, payment not executed Failed; no money was taken, and the customer can still pay later from the same Paysera page
4, executed without a bank confirmation Pending and a note to check the payment in Paysera; never marked paid

When the visitor cancels on the Paysera page, your form page says that nothing was charged and offers a link back to the same payment page.

Refunds

An entry paid through Paysera: the Paysera box with the status, order, Paysera request number, payment method, the signature check, the amount and the note that refunds are made in the Paysera account
The entry after payment: status, order, Paysera request, payment method and how the callback was checked.

Make refunds in your Paysera account. Paysera Checkout has no refund API for projects, so the add-on cannot send refunds and does not change the entry when you refund in Paysera. After a refund, add a note to the entry or change its payment status by hand if you track refunds in Gravity Forms.

Subscriptions

The add-on takes one-off payments. Paysera’s recurring billing for cards needs separate API access issued by Paysera, so the Subscription transaction type is not offered in the feed.

Test and Live

  • In Test mode, payments are sent as Paysera test payments: no money moves and entries are marked as test payments.
  • When the project is checked by Paysera, choose Live and save. The project ID and password stay the same.
  • Make one small real payment and check the entry.
  • Entries remember the mode they were paid in. A live callback for a test entry, or the other way round, is refused.

For developers

The callback address can be changed with the gravityextra_paysera_callback_url filter, and Paysera’s public key can be pinned with gravityextra_paysera_public_key. Amounts, the currency and the order number are always set by the add-on.

// Receive Paysera callbacks on another public address of the same site
// (for example when the home page is behind a login).
add_filter( 'gravityextra_paysera_callback_url', function ( $url ) {
    return add_query_arg( 'callback', 'gfpaysera', home_url( '/pay/' ) );
} );

// Pin Paysera's public key (PEM) instead of loading it from paysera.com.
add_filter( 'gravityextra_paysera_public_key', function () {
    return file_get_contents( WP_CONTENT_DIR . '/paysera-public.key' );
} );

Troubleshooting

What you see What to do
“A Paysera project ID is a number” Copy the number shown next to the project in Projects and Activities, not your account or wallet number.
Paysera says test payments are not allowed Open the project in Paysera, go to General project settings and turn on Allow test payments, or switch the add-on to Live.
The customer returns but the entry stays Processing The callback has not arrived yet. Bank transfers can take a while; the entry shows Pending when Paysera has accepted the order. Check that your site is public, on HTTPS, and that no firewall or maintenance mode blocks requests from Paysera.
“Online payment is not available in JPY” Paysera amounts are sent in cents. Use a currency with two decimals, such as EUR, in Forms → Settings.
A note says a signed callback does not match the entry The callback was genuine but for another amount, currency or mode (for example a live payment on a test entry). The entry was not changed; compare it with the payment in your Paysera account.
The public key line is orange Your server could not reach paysera.com. Callbacks are then checked with the project password until the key loads; press Reload the public key and payment methods later.

Privacy

The add-on sends Paysera the amount, the currency, the payment purpose, the order number, and the customer name, e-mail and country when you map them. Card and bank details are entered on the Paysera page and never reach your site. The project password is stored encrypted with a key from your site’s WordPress salts. Uninstalling the add-on removes its settings, including the password and the saved public key.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr