🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 4, 2026

How to Take Viva.com Payments with Gravity Forms

GravityExtra
How to Take Viva.com Payments with Gravity Forms

Viva.com is a European payment institution that many small and growing businesses use to take card payments online and in store, from tour operators and studios to clinics, schools and event organisers. If your bookings, orders, registrations or donations already run on Gravity Forms, you can take those payments right in the form, on the secure Viva.com Smart Checkout page. This guide shows how, step by step, with the Gravity Forms Viva.com Premium Add-on.

Why take payments in the form itself

  • The customer fills in one form and pays at once, without a separate online shop.
  • The amount is the form total worked out on your server, so a changed price in the browser is never charged.
  • Smart Checkout shows the payment methods your Viva.com account offers in the customer’s country: cards, digital wallets and many local methods.
  • The entry shows whether the customer paid, the order code and transaction and the card used, and you refund from the same screen.
  • Your booking e-mails can wait until the payment is confirmed.

What you need before you start

  • A Viva.com demo account for testing (free) and, later, your live account.
  • Gravity Forms 2.9 or newer with the currency set to one of euro (EUR), pound sterling (GBP), złoty (PLN), leu (RON), koruna (CZK), forint (HUF), Swedish krona (SEK) and Danish krone (DKK).
  • Your site public and on HTTPS, so Viva.com can send webhooks.
  • The add-on: one site $49 a year, five sites $69 a year, unlimited sites $199 a year.

Step 1: Copy your credentials

Log in to your Viva.com demo account and open Settings → API Access. You need two pairs of credentials. The Smart Checkout client ID and secret let the add-on get an access token and create payment orders. The Merchant ID and API Key are used for refunds, recurring charges and the webhook verification key. On the same page, tick Allow refunds, and Allow recurring payments if you plan to sell subscriptions.

Step 2: Install the add-on and connect

Install and activate the add-on, then open Forms → Settings → Viva.com and activate your licence. Leave the environment on Demo, paste the four demo credentials and save. The account line turns green with masked values. Everything secret is stored encrypted.

Viva.com settings: Demo or Live, the Smart Checkout client ID and secret, the Merchant ID, API Key and payment source code for each environment, the EUR currency line, the account-ready line, the payment source URLs and the webhook address
Settings: choose Demo or Live, save your Viva.com credentials and copy the payment source URLs and the webhook address. Secrets are stored encrypted.

Step 3: Create a payment source

A payment source tells Viva.com which website a payment belongs to and where to send the customer afterwards. In Viva.com, open Sales → Online payments → Websites/Apps and add one with your domain, the integration method Redirection/Native Checkout v2, and the Success URL and Failure URL shown in the add-on settings. Upload your logo, save, and copy the four-digit source code into the add-on.

Step 4: Add the webhook

Press Get the Demo webhook verification key in the add-on. Then, in Viva.com Settings → API Access → Webhooks, create a webhook with the address from the add-on and press Verify: Viva.com calls the address and the add-on answers with the key. Choose Transaction Payment Created and make it active. Add the same address for Transaction Failed and Transaction Reversal Created.

Why every webhook is checked again

Viva.com webhooks carry no signature, and Viva.com asks merchants to retrieve the transaction before updating their records. The add-on does exactly that: a webhook only tells it which transaction to look at, and the transaction retrieved with your credentials decides.

Step 5: Build the form

Add a name, an e-mail and your product fields with a total. Quantities, options and calculations work as usual, because the add-on charges the total Gravity Forms works out on the server when the form is submitted.

A sea kayak tour booking form with name, e-mail, tour date, tours and dry bag sets with quantities, the total in euro and the Continue to payment button
The form your customer fills in. Card details are entered on the Viva.com page, not here.

Step 6: Add the Viva.com feed

In the form settings, open Viva.com and add a feed. Choose Products and Services with the form total and map the name and e-mail; Smart Checkout fills them in, so the customer does not type them again. Write a payment description such as Kayak tour #{entry_id}: the customer sees it on the payment page and on the receipt.

The Viva.com feed: products and services with the form total, first name, last name and e-mail mapped, the payment description and the notification option
The feed: choose a one-off payment or a subscription, map the billing fields and set the payment description.

Step 7: Make a test payment

  1. Open the form page, fill it in and press the submit button.
  2. You land on the demo Smart Checkout page. Pay with one of the Viva.com test cards for 0,30 € or more.
  3. You come back to your confirmation, and the entry shows Paid with the order code, the transaction and the card.
  4. Try a cancelled payment too: your form page says nothing was charged and offers a link back to the same payment page.

How the payment is checked

When the customer returns, the add-on retrieves the transaction from Viva.com and compares the order code, the amount in cents, the currency and the status with the entry. A surcharge you set up in Viva.com is allowed only as the surcharge amount Viva.com reports. A pending payment waits; a repeated return or webhook never pays twice.

What the customer sees

  1. Your form, with the total updating as they choose products or quantities.
  2. The Smart Checkout page with your logo, the amount, the description and the payment methods for their country.
  3. Your own confirmation after paying. If the payment is still being confirmed, the page says so and checks again by itself.
  4. If they cancel or the payment does not go through, a message that nothing was charged and a link to try again.

Refunds from the entry

Open a paid entry and use the refund form in the Viva.com box. Refund part of the payment or all of it, in one go or in several steps. Each refund carries a one-time idempotency key, so a double click never refunds twice, and the entry updates as soon as Viva.com answers. Refunds made in your Viva.com account appear on the entry too, after the add-on has retrieved and checked them.

An entry paid through Viva.com and partly refunded: the Viva.com box with the status, order code, transaction, card, amount, refunded amount and the refund form
The entry after payment: status, order code and transaction, the card used, and refunds from the entry screen.

Subscriptions with recurring payments

For memberships, classes or plans, choose Subscription in the feed with a billing cycle such as every month, and optionally a number of payments. The first payment happens on Smart Checkout with recurring payments allowed. After that, a scheduled task charges the same payment method each period through the Viva.com recurring payment API, retrieves each new transaction and records it on the entry. Declined charges are tried again the next day and cancelled after three tries; an unclear answer puts the subscription on hold until you check it, so nobody is charged twice.

Event What the add-on does
First payment checked Entry Active, payment recorded, next charge date set
Period due Charges the same payment method, retrieves and checks the new transaction, records it
Charge declined Entry Failed with the reason; tried again next day, cancelled after 3 declines
No clear answer Subscription on hold; resume from the entry after checking Viva.com
Number of payments reached Subscription expires; no more charges

Good uses

Business Form
Tours and activities Bookings with group sizes, gear hire and dates
Studios, gyms and coaches Class packs, workshops and monthly memberships
Events Tickets, registrations and extras such as meals
Schools and associations Course fees, membership dues and donations
Clinics and services Deposits and appointment payments

Going live

  1. Copy the Smart Checkout and merchant credentials from your live Viva.com account.
  2. Create the payment source and the webhook in the live account, as in steps 3 and 4.
  3. Choose Live, paste the live credentials and the live source code, and save.
  4. Make one small real payment and refund it from the entry.

A quick checklist

Check Where
Account line green in the right environment Forms, Settings, Viva.com
Payment source with the Success and Failure URLs Viva.com, Sales, Websites/Apps
Webhook verified and active for the three events Viva.com, Settings, API Access, Webhooks
Allow refunds (and recurring payments) ticked Viva.com, Settings, API Access
Currency is one Smart Checkout takes Forms, Settings, Currency
Test payment and cancelled payment done Demo environment

Wrapping up

With the add-on in place, your Gravity Forms take payments on the Viva.com Smart Checkout page, every payment is retrieved from Viva.com and checked on your server before an entry changes, refunds run from the entry screen and subscriptions charge themselves at a fixed interval. Read the full setup guide for every setting, or get the Gravity Forms Viva.com Premium Add-on for one site $49 a year, five sites $69 a year, unlimited sites $199 a year.

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