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

Gravity Forms Vipps MobilePay Payment Gateway Premium Add-on Setup Guide

Updated 9 min read Gravity Forms Payments & Pricing
On this page
  1. Video walkthrough
  2. Installation
  3. Connect Your Vipps MobilePay Account
  4. Webhooks Are Set Up for You
  5. Add the Payment to a Form
  6. Capture
  7. Payment description
  8. Order lines
  9. Notifications
  10. What Your Customer Sees
  11. The Entry Screen
  12. Notification Events
  13. Status Checks Every Five Minutes
  14. Troubleshooting
  15. Saving the keys says Vipps MobilePay did not accept them.
  16. Customers come back but the entry stays Processing.
  17. The order lines do not show in the app.
  18. The form says online payment is not available in my currency.
  19. Capture says there is nothing left to capture.
  20. What happens without an active licence?
  21. Take Vipps MobilePay Payments in Gravity Forms

Video walkthrough

Gravity Forms Vipps MobilePay: Payment Gateway Setup, Test Keys, Currency and Webhook
Watch: set up Vipps MobilePay for Gravity Forms on the WordPress side. Watch on YouTube

A Gravity Forms entry for a guided kayak tour booking paid with Vipps MobilePay: the order with two tours, a dry bag and shipping for 1,128.50 kroner, the notes saying the customer was sent to Vipps MobilePay with the phone number prefilled and that the payment was approved and reserved, and on the right the Vipps MobilePay box with a test environment badge, status Authorized, the reference and PSP reference, the reserved, captured and refunded amounts, a capture amount with a Capture button, Cancel the reservation and Refresh status
The entry screen: the order, the payment notes and the Vipps MobilePay box with Capture, Cancel and Refresh.

Requirements

  • WordPress 6.5 or newer, PHP 7.4 or newer, a site address with HTTPS.
  • Gravity Forms 2.9 or newer (any licence). Tested with Gravity Forms 2.9 and 3.1.
  • A Vipps MobilePay merchant agreement with a sales unit for online payments (ePayment API). The test keys are in the business portal for every sales unit.
  • The Gravity Forms currency must be the currency of the sales unit: NOK (Norway), DKK (Denmark) or EUR (Finland).

The Gravity Forms Vipps MobilePay Payment Gateway Premium Add-on lets your customers pay a Gravity Forms form with the Vipps MobilePay app. It uses the ePayment API, the current online payment API of Vipps MobilePay, with the redirect flow: on a phone the app opens by itself, on a computer the customer types the phone number on the payment page and approves in the app. This guide walks you through the keys, the feed, the capture rules, the entry screen and the webhooks.

Installation

  1. Download the add-on zip from your GravityExtra account and upload it in Plugins → Add New → Upload Plugin, then activate it.
  2. Go to Forms → Settings → Vipps MobilePay, enter your key in the Gravity Extra License section and click Activate License.
  3. The Vipps MobilePay settings appear below the licence once it is active.

Connect Your Vipps MobilePay Account

Every sales unit in the Vipps MobilePay business portal has two sets of API keys: one for the test environment and one for production. Open the portal, go to For developers → API keys and show the keys of the sales unit you want to use. You need four values for each environment:

Setting Where to find it
Client ID The client_id of the sales unit.
Client secret The client_secret. Keep it private: it is stored in a password field and never shown again in full.
Subscription key The Ocp-Apim-Subscription-Key, sometimes called the primary key.
Merchant serial number (MSN) The number of the sales unit, shown next to its name (4 to 10 digits).
The Vipps MobilePay settings page: a test environment notice, the environment choice Test or Production, the test client ID with a green check, the client secret and subscription key as hidden password fields, the merchant serial number, empty production key fields, a currency line saying forms use NOK, a Connected to Vipps MobilePay line with the keys masked, and the Webhooks section with the webhook address and a line saying the webhook is registered and its signing secret is never shown
Forms → Settings → Vipps MobilePay: test and production keys, connection check and the registered webhook.

Leave the environment on Test, paste the four test keys and click Save Settings. The add-on asks Vipps MobilePay for an access token with these keys. If they are wrong, the page says so and the keys are not saved. When they work you see Connected to Vipps MobilePay (Test) with the client ID and subscription key masked, so you can check which keys are in use without showing them.

The currency line tells you whether the Gravity Forms currency fits. Vipps MobilePay takes payments in the currency of the sales unit only: NOK for Norway, DKK for Denmark and EUR for Finland. Change it in Forms → Settings → Currency when needed.

Test first, then production

Make at least one test payment with the Vipps MobilePay test app before you switch to Production. Entries paid in the test environment carry a Test environment badge and note, so they are easy to tell apart. When you are ready, enter the production keys, choose Production and save again.

Webhooks Are Set Up for You

When you save working keys, the add-on registers a webhook for your site with the Vipps MobilePay Webhooks API. It listens to the payment events authorized, aborted, expired, cancelled, captured, refunded and terminated. Vipps MobilePay returns a signing secret once; the add-on stores it on your site and never shows it.

  • Every webhook is checked before it is used: the body hash must match the x-ms-content-sha256 header and the HMAC-SHA256 signature in the Authorization header must match the secret. Anything else is refused.
  • Even a valid webhook is only a signal. The add-on reads the payment again from the ePayment API and updates the entry from that answer, so nothing in a webhook body can mark an entry as paid.
  • Webhooks that arrive twice are recognised and processed once.
  • If you move the site to a new address, click Register the webhook again: the old webhook of this site is replaced.

Your site must use HTTPS: Vipps MobilePay only sends webhooks and customers back to HTTPS addresses. The settings page warns you when the site address does not use HTTPS.

Add the Payment to a Form

Any form with Gravity Forms pricing fields can take Vipps MobilePay payments: Product fields, Option fields, a Shipping field and a Total field. Add a Phone field too, so the customer does not have to type the number again on the payment page. Then open the form, go to Settings → Vipps MobilePay and add a feed.

  • Transaction type: Products and Services (one-time payments).
  • Payment amount: the form total, or a single product field.
  • Billing information: map the Phone field to Phone number (prefilled on the payment page). Numbers typed without a country code get +47 for NOK, +45 for DKK and +358 for EUR; numbers that cannot be read are simply not sent.
  • Conditional logic: only use Vipps MobilePay when a condition is met, for example when the customer picks it as payment method.
The Vipps MobilePay section of a payment feed: capture manually, automatically or when a field of the entry gets a value, the capture field Order status and the value Shipped, the payment description Kayak tour booking with the entry number merge tag, order lines in the app, VAT included in prices of 25 percent and sending notifications only after the customer approves
Feed settings: capture rule, payment description, order lines with VAT and notifications.

Capture

Vipps MobilePay works in two steps. When the customer approves, the amount is reserved on their card or account. The money only moves when you capture it. The rules of Vipps MobilePay say that goods must be delivered before they are captured, so choose the capture rule that fits what you sell:

Capture Good for
Manually Physical goods and services delivered later. Capture from the entry screen or for many entries at once with the entry list bulk action Capture Vipps MobilePay payments.
Automatically Things delivered at once: tickets, downloads, memberships that start today, donations.
When a field gets a value A workflow with an order status. Pick a field (for example an admin-only Drop Down named Order status) and a value (Shipped). When the entry is edited, or updated by another add-on, and the field has that value, the reserved amount is captured.

Payment description

The text the customer sees in the app when approving, at most 100 characters. Merge tags work, for example Kayak tour booking #{entry_id}.

Order lines

With Show the products, quantities and VAT in the app on, the add-on sends the Gravity Forms products as order lines: the name, quantity, unit price, the total of each line, shipping marked as shipping, and the VAT worked out from VAT included in prices (25 in Norway and Denmark, 25.5 in Finland, 0 when no VAT applies). Order lines are only sent when they add up to the payment amount exactly. Forms with discounts (negative product prices) are paid without order lines, so the payment is never held up.

Notifications

Keep Send form notifications only after the customer approves the payment on, and your form notifications wait until the payment is approved. Customers who cancel in the app do not get a confirmation e-mail.

What Your Customer Sees

  1. The customer fills in the form and clicks the submit button. The amount is worked out on the server from the pricing fields.
  2. The add-on creates the payment and sends the customer to Vipps MobilePay. On a phone the app opens; on a computer the payment page shows the phone number from the form.
  3. The customer approves in the app and comes back to your site. The add-on reads the payment and shows your normal confirmation (or redirect).
  4. If the customer comes back before approving, a waiting message is shown and the page checks again by itself every few seconds. If the customer cancels in the app, the page says that nothing was charged and links back to the form.

The Entry Screen

Every entry paid with Vipps MobilePay has a Vipps MobilePay box with the payment status, the state at Vipps MobilePay, the reference, the PSP reference, and the amounts reserved, captured, refunded and released. Depending on the state it offers:

  • Capture: the whole reserved amount or a part of it. A second capture takes the rest.
  • Cancel the reservation: releases the reserved amount to the customer. After a partial capture the button releases the rest.
  • Cancel the payment request: for a payment the customer has not approved yet.
  • Refund: all or part of the captured amount, as many times as needed until nothing is left.
  • Refresh status: reads the payment again, for example after a capture or refund made in the business portal.

Each action asks for confirmation, checks your permission (users who can edit entries) and sends a one-time request id to Vipps MobilePay as the Idempotency-Key, so a double click never captures or refunds twice.

Entry payment status Means
Processing Sent to Vipps MobilePay, not approved yet.
Authorized Approved by the customer; the amount is reserved.
Paid Captured (all or part of the amount).
Partially Refunded / Refunded Part or all of the captured amount was refunded.
Voided The reservation was cancelled before anything was captured.
Cancelled / Failed The customer cancelled, the payment request was cancelled, or it expired before approval.

Notification Events

Payment feeds add these events to Settings → Notifications, so you can e-mail the customer or your team at each step: Payment Approved (Reserved), Payment Completed (Captured), Payment Refunded, Payment Failed or Cancelled and Reservation Cancelled. The usual payment merge tags, such as the payment amount and status, work in them.

Status Checks Every Five Minutes

Every five minutes WordPress runs a short job that reads the payments still waiting for the customer (up to three days old). If a webhook was lost, an approved payment is still marked as reserved, and an expired one as failed. The job only looks at entries that are still processing, so it costs almost nothing.

Troubleshooting

Saving the keys says Vipps MobilePay did not accept them.

Check that the four values come from the same sales unit and the same environment: test keys only work with Test, production keys only with Production. The subscription key and the client secret are easy to swap.

Customers come back but the entry stays Processing.

The customer has not approved yet, or the site cannot be reached by webhooks. The waiting page and the five-minute status check will update the entry; use Refresh status on the entry screen to check at once. Make sure the site uses HTTPS.

The order lines do not show in the app.

Order lines are only sent when they add up to the payment amount. Discounts and coupons switch them off for that payment. Check the VAT rate in the feed as well.

The form says online payment is not available in my currency.

Set the Gravity Forms currency to the currency of your sales unit: NOK, DKK or EUR.

Capture says there is nothing left to capture.

The payment was captured or cancelled already, maybe in the business portal. Click Refresh status to bring the entry up to date.

What happens without an active licence?

The settings show only the licence box and new payments are not started; forms show a short message instead of taking the payment. Existing entries keep their data.

Take Vipps MobilePay Payments in Gravity Forms

App switch on phones, prefilled phone numbers, order lines, reserve and capture, refunds and verified webhooks, all inside Gravity Forms.

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