Skip to content

EMV iFrame Integration

The EMV iFrame is an extension of the standard iFrame Integration (new DirectNG) payment page. It adds the ability to charge a card through a physical EMV device (card present), alongside — or instead of — the standard online credit card fields, all within the same hosted Tranzila iframe.

When EMV mode is enabled, the iframe displays an additional selection field that lets the payer choose whether to pay with an online credit card or to capture the card on a connected EMV device.

This guide describes only the parameters and behavior that are specific to the EMV iFrame. The base setup, data transfer methods (POST/GET), code examples for embedding the iframe, and response handling are identical to the standard iframe and are documented in the iFrame Integration (new DirectNG) guide.

Base URL

Text
https://directng.tranzila.com/terminalname/iframenew.php

Replace terminalname with your actual terminal name.

iFrame dimensions

The div that hosts the EMV iframe should be sized:

Text
width: 370px
height: 455px

These dimensions differ from the standard iframe because the EMV payment-method selection field requires additional vertical space.

Enabling EMV mode

EMV mode is activated by sending modularity_on=1. This adds the EMV device selection field to the payment page.

ParameterRequiredValuesDescription
modularity_onYes1Adds the EMV device selection field to the iframe. Required for EMV charges

To present EMV device payment only (hiding the online credit card fields), combine modularity_on=1 with hide_cc=1.

ParameterRequiredValuesDescription
hide_ccNo1Hides the online credit card payment fields (EMV-only)

Required parameters

ParameterRequiredValuesDescription
sumYesPositive decimal numberTransaction amount
currencyYesSee Currency valuesTransaction currency
cred_typeYes1 - One payment, 6 - Credit, 8 - InstallmentsPayment type
modularity_onYes1Enables the EMV device selection field

Additional parameters

These parameters behave exactly as in the standard iFrame Integration guide. They are listed here for convenience.

ParameterValuesDescription
opensum1Allows the payer to enter the amount to be charged
langSee Language valuesDisplay language of the payment page
maxpayPositive integerMaximum number of installments the payer may select
IMaamSee VAT valuesVAT percentage applied to the invoice
companyStringPaying company name (*sent to the invoice)
contactStringPaying contact name (*sent to the invoice)
emailStringPayer email address (*sent to the invoice)
phoneStringPayer phone (*sent to the invoice)
addressStringPayer address (*sent to the invoice)
cityStringPayer city (*sent to the invoice)
pdescStringProduct description (*sent to the invoice)

Parameters marked with * are passed to the generated invoice.

Display settings

ParameterValuesDescription
trBgColorhexadecimalBackground color
trTextColorhexadecimalText color
trButtonColorhexadecimalPayment button color
buttonLabelstringPayment button text
hidesum1Hide the payment amount
nologo1Remove the Tranzila logo

Digital wallet options

ParameterValuesDescription
ppnewwin2Add a PayPal payment button to the iframe page

Parameter names are case sensitive.

Possible values

Currency values

ValueCurrency
1NIS (₪)
2US Dollar
978Euro
826Pound Sterling
124Canadian Dollar
036Australian Dollar
578Norwegian Krone
752Swedish Krona
208Danish Krone
392Japanese Yen
756Swiss Franc

Language values

ValueLanguage
ilHebrew
usEnglish
arArabic
ruRussian
esSpanish
deGerman
frFrench
jpJapanese

VAT values

IMaam accepts the VAT rate as a fraction (for example 0.18 for 18%) or a whole number (for example 18). If no value is sent, VAT is treated as 0.

To use the IMaam parameter, the VAT field must first be configured under Additional Fields for Transaction in the Tranzila system.

cred_type values

ValueDescription
1One payment
6Credit installments
8Installments

Success, failure, and Notify URLs

You can configure the success, failure, and Notify pages in the payment page settings (Merchant), or — if they are dynamic — send them per transaction as parameters.

ParameterDescription
success_url_addressSuccess page URL
fail_url_addressFailure page URL
notify_url_addressNotify page URL

Implementation notes

  • The success / failure / Notify URL must begin with https.

  • If you pass parameters inside the URL, the URL must be URL-encoded (for example signs such as &, %, or $).

  • Sending any of these parameters overrides the success / failure / Notify settings configured on the payment page.

  • If the URL sent is invalid, an email is sent to the terminal owner's email address in the following format:

    Text
    Url address of success URL : XXXXX that you have send as parameter was invalid. Transaction time: 27-11-2017 11:11:10
    

Examples

The examples below use the GET form for readability. As with the standard iframe, POST is the recommended method. See Code Examples for Creating Iframe with POST in the main guide.

Standard charge with open sum:

Text
https://directng.tranzila.com/terminalname/iframenew.php?currency=1&modularity_on=1&opensum=1&lang=us&cred_type=1

Installments charge with open sum:

Text
https://directng.tranzila.com/terminalname/iframenew.php?currency=1&modularity_on=1&opensum=1&lang=us&cred_type=8

EMV device only (online card fields hidden):

Text
https://directng.tranzila.com/terminalname/iframenew.php?currency=1&modularity_on=1&opensum=1&lang=us&cred_type=8&hide_cc=1

Receiving the response

The response structure and response-handling code examples are identical to the standard iframe. See Receiving the Response in the main guide.

Was this page helpful?