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

Gravity Forms iyzico Payment Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Payments & Pricing
On this page
  1. What you need
  2. Install and activate
  3. Connect your iyzico account
  4. Add a feed to your form
  5. Identity numbers
  6. Basket items
  7. How a payment works
  8. Installment interest
  9. Payment notifications (webhooks)
  10. Subscriptions
  11. Refunds and cancels
  12. Sandbox and Live
  13. For developers
  14. Troubleshooting
  15. Privacy

The Gravity Forms iyzico Payment Premium Add-on takes payments with your forms through your own iyzico merchant account. When a visitor submits the form, the add-on starts an iyzico Checkout Form for the exact total Gravity Forms worked out on the server and sends the visitor to the iyzico payment page. Card details, 3-D Secure and installments are handled there, never on your website. When the visitor comes back, the add-on fetches the result from iyzico on the server and marks the entry paid only when the signed answer matches the entry: same checkout, same reference, same currency and the same amount.

This guide covers the setup, the feed, installments, subscriptions, refunds and the notification address. 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 and Gravity Forms 2.9 or newer.
  • An iyzico merchant account. Your API key and secret key are in the Settings area of the iyzico merchant panel. For tests, open a free iyzico sandbox account at sandbox-merchant.iyzipay.com; it has its own pair of keys.
  • The Gravity Forms currency set to one iyzico accepts: Turkish lira, US dollar, euro, British pound, Norwegian krone or Swiss franc. Subscriptions take Turkish lira, US dollars or euros. Gravity Forms has no Turkish lira of its own; the add-on adds it to the currency list (₺, written as 1.234,56).
  • Your site on HTTPS with a valid certificate. iyzico sends the customer back to an HTTPS address.
  • A form with at least one product field (or a total). Donations and subscriptions work too.
  • For subscriptions: the Subscription feature switched on in the Add-ons area of your iyzico merchant panel.

The add-on talks to iyzico at sandbox-api.iyzipay.com in Sandbox and api.iyzipay.com in Live. Every request is signed with your secret key. 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 → iyzico, enter your GravityExtra licence key and press Activate License.
  3. The iyzico account and Payment notifications sections appear once the licence is active.

Connect your iyzico account

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.
  1. Leave Environment on Sandbox (test) for now. A yellow note at the top reminds you that payments go to the iyzico sandbox and no money moves.
  2. Paste the sandbox API key and secret key. Both are stored encrypted with keys derived from your site and are never shown again; the screen shows only a masked API key.
  3. Optional: enter your merchant ID. It is only used to check the signature of subscription notifications.
  4. Pick the payment page language: Turkish, English, or the site language.
  5. Press Save Settings. The Connection line sends a signed test request; “Connected to iyzico (Sandbox)” means iyzico accepted the keys.

Keys that belong together

The API key and secret key must come from the same environment. A sandbox API key with a live secret key is refused, and the connection line turns red.

Add a feed to your form

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.

Open the form, go to Settings → iyzico and press Add New.

  • Transaction type: Products and Services, Donations, or Subscription.
  • Payment amount: the form total or one product field.
  • Billing information: map first name, last name, e-mail, mobile phone, identity number, address, city, postal code and country. iyzico needs a buyer and an address for every payment. When the city or country is not mapped, the defaults you set below are sent.
  • Order name and item category: used for the basket items iyzico shows.
  • Item type: service or digital goods, or physical goods that you ship.
  • Installments: tick 2, 3, 6, 9 or 12. A single payment is always offered.
  • Installment note: shows the installment options above the submit button.
  • 3-D Secure: tick to ask for it on every payment; otherwise iyzico decides per payment.
  • Identity number when none is given and Identity check: see below.
  • Notifications: send form notifications only after the customer has paid.

Identity numbers

iyzico asks for an identity number for every buyer. For buyers in Turkey this is the 11-digit T.C. Kimlik No. Add a text field for it and map it to Identity number. With Identity check on, a buyer in Turkey who types a number that fails the T.C. check digits sees a message on that field and nothing is sent to iyzico. Buyers outside Turkey can leave it empty; the fallback number from the feed is sent for them.

Basket items

iyzico refuses a payment when the basket items do not add up to the price. The add-on sends one basket item per product line (unit price with options times quantity) and one for shipping. When a coupon or a negative line changes the total, the whole order goes as one item named after your order name, so the sum always equals the price.

How a payment works

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.
  1. The visitor fills in the form. The total is worked out again on the server, so a total changed in the browser has no effect.
  2. The add-on starts the iyzico Checkout Form with price and paidPrice both equal to the total, your installments and the buyer details, and checks the signature of iyzico’s answer.
  3. The visitor pays on the iyzico payment page, with 3-D Secure when the bank asks, in one go or in installments.
  4. iyzico sends the visitor back to your site with a token. The add-on asks iyzico for the result and checks the answer signature, the token, the reference, the currency and the amount.
  5. The entry becomes Paid and your confirmation shows. Held notifications are sent now.

If the card is declined, the entry becomes Failed and the visitor sees that nothing was charged. When iyzico’s fraud check holds a payment for review, the visitor sees that the payment is being reviewed and the entry is marked paid as soon as iyzico approves it.

Installment interest

Depending on your iyzico agreement, the card bank can add interest for installments that the customer pays. The entry keeps your amount; the entry box shows what the customer paid and the number of installments, and a note records the bank’s extra. Refunds can return up to what the customer paid.

Payment notifications (webhooks)

Copy the Notification address from the settings and paste it in the iyzico merchant panel under Settings → Merchant Settings → Merchant Notifications, once for payments and once for subscriptions. Notifications help when a customer closes the page before coming back, and they bring every subscription payment.

  • A notification with a wrong X-IYZ-SIGNATURE-V3 header is always refused.
  • Notifications never change an entry by themselves. They only make the add-on ask iyzico for the result again, with the same checks as above.
  • A repeated notification never completes a payment twice.
  • Tick Accept only notifications signed with X-IYZ-SIGNATURE-V3 once the signed notifications are switched on for your iyzico account.

Subscriptions

Choose Subscription as the transaction type and set the recurring amount, the billing cycle and the number of payments. iyzico bills every 1 to 30 days, 1 to 12 weeks, 1 to 12 months or yearly. Set Free trial (days) to let iyzico check the card now and take the first payment later.

  1. The add-on creates a product and a pricing plan in your iyzico account the first time a set of terms is used, and reuses that plan afterwards.
  2. The visitor sees iyzico’s subscription form on a short page of your site and enters the card there.
  3. The entry becomes Active and the first payment is added. Every later payment arrives by notification and is added to the entry after the add-on checks the period with iyzico.
  4. A failed period is recorded as a failed subscription payment. Cancel Subscription on the entry cancels it at iyzico too.

One page with iyzico’s script

iyzico offers the subscription form only as its own script. The add-on prints it on the short subscription page alone, after checking that it loads only from iyzipay.com. No other page of your site loads anything from iyzico.

Refunds and cancels

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.
  • Refund: type any amount up to what is left and press Refund. The add-on refunds per basket item, first item first, and checks iyzico’s signed answer. The entry becomes Partially Refunded or Refunded.
  • Cancel payment: cancels the whole payment on the day it was made, so it never shows on the customer’s statement. After that day, banks only accept refunds.
  • Each button works once per page load, so a double click never refunds twice.

Sandbox and Live

  1. Make a few test payments in Sandbox with the test cards iyzico lists in its documentation, including a declined card and a payment in installments.
  2. Check the entries, notes and e-mails.
  3. Switch Environment to Live, paste the live API key and secret key and save. The connection line should say “Connected to iyzico (Live)”.
  4. Make one small live payment and refund it.

Entries remember the environment they were paid in. Sandbox entries keep a “Sandbox — test payment” badge, and refunds always go to the environment of the payment.

For developers

The filter gravityextra_iyzico_checkout_request can add paymentSource or debitCardAllowed to the Checkout Form request. Everything that affects the money is always set by the add-on.

// Accept credit cards only on the iyzico payment page (no debit cards).
// Amounts, currency, references, buyer and addresses are always set by the
// add-on and cannot be changed here.
add_filter( 'gravityextra_iyzico_checkout_request', function ( $extra, $request, $feed, $entry ) {
    $extra['debitCardAllowed'] = false;
    return $extra;
}, 10, 4 );

The filter gravityextra_iyzico_webhook_url changes the notification address shown in the settings, for example on a site behind a proxy.

Troubleshooting

  • “Online payment is not available right now”: the licence is not active or the keys of the chosen environment are missing.
  • “Online payment is not available in JPY”: set the Gravity Forms currency to one iyzico accepts.
  • “We could not start the payment with iyzico”: open the entry notes. The note shows iyzico’s error code and message, for example a missing buyer field.
  • The entry stays Processing: the visitor left before coming back and no notification arrived. Add the notification address in the iyzico merchant panel; the next notification completes the entry.
  • “An iyzico result does not match this entry”: the result had another amount, currency, reference or token. The entry was not changed. Check the payment in your iyzico merchant panel.
  • Subscriptions do not start: switch on the Subscription feature in the iyzico merchant panel and use Turkish lira, US dollars or euros.

Privacy

Card details never reach your site. The add-on stores the iyzico references, the paid amount and the number of installments on the entry, and the card brand and last four digits in a note. Logs contain entry numbers, statuses and error codes, never keys or card data.

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