🎉 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 iyzico Payments with Gravity Forms

GravityExtra
How to Take iyzico Payments with Gravity Forms

If you sell in Turkey, your customers expect to pay by card with 3-D Secure and, for larger amounts, in installments. iyzico is one of the most used payment services in Turkey, and it handles all of that on its own payment page. This tutorial shows how to connect Gravity Forms to iyzico so a booking form, an order form or a donation form takes the payment, checks it properly and records it on the entry.

We use the Gravity Forms iyzico Payment Premium Add-on by GravityExtra. You will set up a sandbox account, connect the keys, build a booking form with a T.C. identity number field, offer installments, make test payments, and look at refunds, subscriptions and notifications.

Why take payments in the form itself

A form that also takes the payment saves a step for your customer and for you. The booking, the order details and the payment land in one entry. Your team sees at a glance whether the workshop seat is paid, the confirmation e-mail goes out only after the payment, and a refund is two clicks away in the same screen.

The usual way to do this with iyzico is the Checkout Form: your site starts a checkout for an amount, the customer pays on iyzico’s page, and your site asks iyzico for the result. The add-on does exactly that, with the checks iyzico documents, so you do not have to write any code.

What you need before you start

  • WordPress 6.5 or newer, PHP 7.4 or newer and Gravity Forms 2.9 or newer.
  • An iyzico merchant account, and a free iyzico sandbox account for testing.
  • Your site on HTTPS.
  • The Gravity Forms iyzico Payment Premium Add-on. It costs one site $49 a year, five sites $69 a year, unlimited sites $199 a year.

Step 1: Get your sandbox keys

Sign up for the iyzico sandbox at sandbox-merchant.iyzipay.com. In the sandbox merchant panel, open Settings and copy the API key and the secret key. The secret key is what signs every request, so treat it like a password. You will repeat this with the live keys later, from your live merchant panel.

Step 2: Install the add-on and connect

Upload the add-on zip in Plugins, activate it, then open Forms, Settings, iyzico and activate your GravityExtra licence. Two sections appear: iyzico account and Payment notifications.

iyzico settings: Sandbox or Live, the API key, secret key and merchant ID for each, the payment page language, the Turkish lira currency line and the connected status with the masked API key
Settings: choose Sandbox or Live and enter the API key and secret key. Both are stored encrypted.

Keep the environment on Sandbox, paste the two keys and save. The keys are encrypted before they are stored, and only a masked API key is shown. The Connection line sends a signed test request to iyzico. If it says “Connected to iyzico (Sandbox)”, the keys are right. If it turns red, check that both keys come from the sandbox panel.

Set the Gravity Forms currency in Forms, Settings. Gravity Forms does not list the Turkish lira by itself; the add-on adds it, so you can pick Turkish Lira right away. iyzico accepts Turkish lira, US dollars, euros, British pounds, Norwegian krone and Swiss francs. The settings screen confirms the currency you picked.

Step 3: Build the booking form

For this example we take bookings for a kilim weaving workshop in Istanbul. The form has:

  • a Name field and an Email field,
  • a Phone field for the mobile number,
  • a Single Line Text field labelled “T.C. identity number”,
  • an Address field,
  • two Product fields, “Weaving workshop (per person)” and “Take-home loom kit”,
  • and a Total field.
A weaving workshop booking form with name, e-mail, mobile phone, T.C. identity number, address, two products, the total in Turkish lira and the installment note above the Continue to payment button
The form your customer fills in. Card details are entered on the iyzico payment page, not here.

iyzico needs a buyer with a name, e-mail, mobile phone, identity number and address for every payment. The phone number is sent in international form, so a customer who types 0532 555 01 01 is sent as +905325550101. Buyers outside Turkey can leave the identity field empty.

Step 4: Add the iyzico feed

In the form, open Settings, iyzico, and add a feed. Choose Products and Services, pick the form total as the payment amount and map the billing fields: first name, last name, e-mail, mobile phone, identity number, street, city, postal code and country.

The iyzico feed: product payment with buyer, phone, identity number and address mapping, order name, item category and type, installments of 3 and 6, 3-D Secure, the identity check and the notification option
The feed: buyer details, identity number, address, installments and 3-D Secure.

Then work through the iyzico section:

  • Order name and item category describe the basket on iyzico. Merge tags work in the order name, for example “Workshop booking #{entry_id}”.
  • Item type: a workshop is a service, so choose “Service or digital”. Choose physical goods when you ship something.
  • Installments: tick 3 and 6. Customers can still pay in one go.
  • Installment note: shows “Pay in one go or in 3, 6 installments” above the submit button.
  • 3-D Secure: leave it off to let iyzico decide, or tick it to ask for 3-D Secure every time.
  • Identity check: keep it on. A buyer in Turkey with a mistyped T.C. Kimlik No sees a message on that field before anything is sent.
  • Notifications: send form notifications only after the customer has paid, so nobody gets a booking e-mail for an unpaid seat.

Step 5: Make a test payment

Open the form page, fill it in with two seats and a loom kit, and press Continue to payment. Here is what happens:

  1. Gravity Forms works out the total on the server. Whatever the browser shows, the server total is what gets charged.
  2. The add-on starts the iyzico Checkout Form. The price and the paid price both equal the total, and the basket has one item per product line: the two seats and the kit add up exactly to the total. iyzico refuses a basket that does not add up, so this matters.
  3. You land on the iyzico payment page. Pay with one of the sandbox test cards from the iyzico documentation and choose six installments.
  4. iyzico sends you back to the form page. The add-on asks iyzico for the result, checks the signature of the answer, and compares the token, the reference, the currency and the amount with the entry.
  5. The confirmation shows and the booking e-mail goes out.
An entry paid through iyzico: the iyzico box with the status, last result, reference, payment ID, amount, paid amount, six installments, the refund form and the same-day cancel button
The entry after payment: status, iyzico references, installments, refund and cancel.

Open the entry in Forms, Entries. The iyzico box shows the status, the iyzico payment ID, the amount, what the customer paid and the number of installments. A note records the card brand and last four digits, never the card number. Try a declined test card too: the entry becomes Failed and the customer sees that nothing was charged.

Step 6: Add the notification address

Sometimes a customer pays and closes the tab before iyzico sends them back. For those cases, iyzico can notify your site. Copy the Notification address from the add-on settings and paste it in the iyzico merchant panel under Settings, Merchant Settings, Merchant Notifications.

The add-on checks the X-IYZ-SIGNATURE-V3 header that iyzico sends with each notification and refuses a wrong one. A notification is never trusted on its own: it only makes the add-on ask iyzico for the result again, with the same checks as the return. A repeated notification is ignored, so a payment is never completed twice. When the signed notifications are switched on for your account, tick “Accept only notifications signed with X-IYZ-SIGNATURE-V3” to refuse unsigned ones too.

Installments and installment interest

Installments in Turkey are offered by the card banks, so which counts a customer sees depends on their card. The add-on offers the counts you ticked, and the iyzico payment page shows the ones the card supports.

Depending on your agreement with iyzico, the bank may add interest for installments that the customer pays. In that case iyzico reports a paid amount that is higher than your price. The add-on accepts that, keeps your amount on the entry, shows what the customer paid and adds a note with the difference. A paid amount lower than your price is never accepted.

Subscriptions

For memberships, classes or boxes, switch the feed to Subscription. Pick the recurring amount, the billing cycle, the number of payments and, if you like, a free trial in days. Switch on the Subscription feature in the Add-ons area of your iyzico merchant panel first.

The first time a set of terms is used, the add-on creates a product and a pricing plan in your iyzico account and then reuses them. The customer enters the card on iyzico’s subscription form, shown on a short page of your site. The entry becomes Active and the first payment is added. Every later payment arrives as a notification; the add-on checks the period with iyzico and adds it to the entry. Cancel Subscription on the entry cancels it at iyzico.

Refunds and same-day cancels

In the entry, type an amount and press Refund. Partial refunds work, and you can refund the rest later. The add-on refunds per basket item, as iyzico requires, and checks iyzico’s signed answer. On the day of the payment you can also cancel the whole payment; a cancel never shows on the customer’s statement. After that day, use Refund.

Going live

  1. Switch the environment to Live.
  2. Paste the live API key and secret key from your live iyzico merchant panel and save.
  3. Check that the Connection line says “Connected to iyzico (Live)”.
  4. Make one small real payment and refund it from the entry.

Entries remember where they were paid, so old sandbox entries keep their test badge and refunds always go to the right environment.

A quick checklist

Check Where
Keys connected in the right environment Forms, Settings, iyzico, Connection line
Currency accepted by iyzico Forms, Settings, Currency
Identity number field mapped Form, Settings, iyzico feed
Installments ticked iyzico feed
Notification address added iyzico merchant panel, Merchant Notifications
Test payment, declined card and refund done Sandbox

Wrapping up

With the add-on in place, your Gravity Forms take card payments on the iyzico payment page with 3-D Secure and installments, every result is checked on your server before an entry changes, and refunds, cancels and subscriptions are handled from the entry screen. Read the full setup guide for every setting, or get the Gravity Forms iyzico Payment 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