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

Gravity Forms PassKit Premium Add-on Setup Guide

Updated 7 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Get your PassKit API key and secret
  4. The settings page
  5. Add a feed to a form
  6. The pass holder
  7. Custom pass fields
  8. Conditions
  9. The pass URL and merge tags
  10. What is stored, and privacy
  11. When something goes wrong
  12. Safe to retry
  13. A typical setup

Video walkthrough

Gravity Forms PassKit Add-On Setup Guide: Apple & Google Wallet Passes from Entries (WordPress Side)
Video setup guide: Gravity Forms PassKit Watch on YouTube

The Gravity Forms PassKit Premium Add-on turns each form submission into a digital wallet pass. It enrols a member under the PassKit membership program and tier you choose, maps the pass holder and any custom pass fields from your form fields, and returns a pass install URL for Apple Wallet and Google Wallet. This guide walks through connecting your PassKit account, choosing a program, adding a feed to a form, and understanding exactly what the add-on sends and stores.

What you need

You need Gravity Forms 2.9 or newer, a WordPress site running PHP 7.4 or newer, and a PassKit account on a paid plan. PassKit is a digital-wallet platform: you define a membership program (the pass template, design and fields) and optional tiers, and your forms enrol members, each of whom receives an Apple Wallet and Google Wallet pass. You will need three things from PassKit: an API key and API secret from your credentials, and the id of at least one membership program.

For Apple Wallet passes you need your own Apple Developer account. Apple requires a Pass Type ID certificate for Apple Wallet passes, and you supply that certificate to PassKit once in the PassKit dashboard — it is a customer-side setup, not something this add-on does for you. Google Wallet is handled by PassKit, so there is no Google account setup to do. This add-on connects to PassKit with your own account; it does not include a PassKit subscription.

Get your PassKit API key and secret

In PassKit, open Developer Tools and create or copy your API credentials: an API key and a matching API secret. Treat both like a password. The add-on uses them to authenticate: on your server it signs a short-lived token with your secret, so your secret is only ever used locally and never leaves your site. While you are in PassKit, note the id of the membership program (and tier, if you use tiers) you want to create passes under; you can set it as the default and override it per feed.

The settings page

In WordPress go to Forms → Settings → PassKit, activate your GravityExtra license key, then enter your API key and API secret. Both fields are password fields, both values are encrypted before they reach the database, and neither is shown again in clear. Enter a default program id (and optionally a default tier id) so feeds can create passes without repeating it. Leave the data centre base URL blank to use the default PassKit data centre, or enter your region’s PassKit host if your account is on another region. Use the Test connection button to confirm your key and secret work together: it reads your PassKit programs and reports success, without creating a pass or anything else.

The PassKit settings page in Gravity Forms: license key, API key, API secret, default program and tier, and a Test connection button
The settings page: your PassKit API key and secret, default program and tier, and a Test connection button.

If your site cannot encrypt secrets (the PHP openssl extension is missing), the add-on tells you, and you can instead define the credentials with the GFPK_API_KEY and GFPK_API_SECRET constants in wp-config.php (and the program with GFPK_PROGRAM, the tier with GFPK_TIER, the base URL with GFPK_BASE_URL). When those constants are set, the credential fields are replaced with a short note and nothing is stored in the database.

Add a feed to a form

Open a form, go to Settings → PassKit, and add a feed. Give the feed a name so you can recognise it later, and set the program id — the PassKit membership program the pass is created under — and optionally a tier id. Leave either blank to use the default from the settings. Both fields accept merge tags, so a form field can even choose the program or tier, for example to issue a different membership level based on what the person selected.

The PassKit feed in Gravity Forms: the program id, tier id, pass holder mapping and the custom pass fields
A feed chooses the program and tier, and maps the pass holder and pass fields.

Every value field accepts merge tags, so you pull data straight from the submission, for example an email with {Email:2} or an order id from a field with {Order id:3}.

The pass holder

Map the pass holder from your form fields: the email address (required to enrol the member), and optionally a first name, last name and display name. The email is the one value PassKit needs for a member; the names appear on the pass and in your PassKit member list. If a submission has no email in the mapped field, the add-on leaves a clear note and creates nothing, so an incomplete submission never produces a broken pass.

Custom pass fields

You can store up to three custom pass fields on each pass. Give the field name and map its value from a form field. These are handy for a membership number, a tier label, an order id or a campaign, so the value is stored on the PassKit member and can be shown on the pass. Pass fields are optional; a pass can be created with none.

Conditions

A conditional-logic rule at the bottom of the feed lets you create a pass only when a rule is met, for example only when a payment field marks the order as paid, or only for a certain plan. You can also run several feeds on one form — for instance one feed that enrols everyone in a base tier and another that enrols into a premium tier only when a condition is met. Each feed is evaluated on its own.

The pass URL and merge tags

When a pass is created, PassKit returns the pass install URL and a member id. The add-on stores both with the entry and makes them available as merge tags: {passkit_pass_url}, {passkit_member_id} and {passkit_status}. The most common use is to email the customer their pass: add a notification to the form and put {passkit_pass_url} in the message, so the person receives a link to add the pass to Apple Wallet or Google Wallet the moment they submit.

A front-end Gravity Form whose submission creates an Apple Wallet and Google Wallet pass
The form the visitor fills in; the pass is created the moment they submit.

What is stored, and privacy

Your PassKit API key and secret are encrypted on your own site with AES-256-GCM before they are stored, they are never shown again, and they are never written to an entry, a note or a log. The add-on only ever contacts the PassKit API at the data centre you set, and nothing else. Requests go over HTTPS with certificate verification on, a redirect is never followed, and authentication is a short-lived token signed on your server: your secret never travels in a request, and your key travels only inside the signed token, never in the URL or the request body. The pass install URL PassKit returns is stored with the entry so the merge tag works; it is the link you share with the customer, not a secret.

When something goes wrong

If a submission is missing what a pass needs — no program id anywhere, or no email in the mapped field — the add-on leaves a clear note on the entry and creates nothing. If PassKit returns an error, the add-on records a readable note (with the key and secret stripped out) and sends the failed-event notification, while the form submission itself still succeeds for the visitor.

A Gravity Forms entry screen showing the PassKit note that a wallet pass was created
The entry screen records a note confirming the wallet pass was created, with its member id.

Safe to retry

The add-on is safe to retry. A pass is created once per entry and feed: a built-in done marker and a short-lived lock mean that resending a notification, a retry, or a double submission never creates a second pass. If a first attempt failed because PassKit was briefly unavailable, resending the feed after the problem is fixed creates the pass exactly once.

A typical setup

A common setup is a membership sign-up form with the member’s name, email and a membership number. Map the email to the pass holder, map the membership number to a custom pass field, set the program to your membership program, and add a notification that emails the member their {passkit_pass_url}. From then on, every completed form enrols a member, creates an Apple Wallet and Google Wallet pass, keeps the member id with the entry, and sends the member a link to add their pass automatically — with your API key and secret kept encrypted and your Apple Wallet certificate held by PassKit.

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