Redirection Request and Response Parameters


Authorization/Purchase Request Parameters


command(String, mandatory)

Maximum Length Possible/ expected values Description
20 AUTHORIZATION, PURCHASE A command for payFORT server to understand.

access_code(alphanumeric, mandatory)

Maximum Length Example Description
20 zx0IPmPy5jp1vAz8Kpg7 Merchant access code that can be found in the backoffice

merchant_identifier(alphanumeric, mandatory)

Maximum Length Example Description
20 CycHZxVj Merchant ID that can be found in the backoffice

merchant_reference(alphanumeric, mandatory)

Maximum Length Example Special Characters Description
40 XYZ9239-yu898 - _ . The Merchant’s unique order number.

amount(numeric, mandatory)

Maximum Length Example Description
10 10000 The transaction’s amount.
*Each currency has predefined allowed decimal points that should be taken into consideration when sending the amount check the note after this table.

currency(String, mandatory)

Maximum Length Example Description
3 AED The currency of the transaction’s amount in ISO code 3.

language(String, mandatory)

Maximum Length Possible/ expected values Description
2 en/ar The checkout page and messages language where en is for english and ar for Arabic

customer_email(alphanumeric, mandatory)

Maximum Length Example Special characters Description
254 customer1@domain.com _ - . @ + The customer’s email.

signature(alphanumeric, mandatory)

Maximum Length Example Description
200 7cad05f0212ed933c9a5d5dffa31661acf2c827a A string hashed using the Secure Hash Algorithm. Please refer to section Signature

token_name(alphanumeric, optional)

Maximum Length Example Special characters Description
100 Op9Vmp . @ - _ The Token received from the Tokenization process.

payment_option(String, optional)

Maximum Length Possible/ expected values Description
10 - MASTERCARD
- VISA
- AMEX
- SADAD (for Purchase operations only)
- NAPS (for Purchase operations only)
- KNET(for Purchase operations only)
- MADA (for Purchase operations and eci Ecommerce only) Click here to download MADA Branding Document
- MEEZA (for Purchase operations and ECOMMERCE eci only)
Payment option.

sadad_olp(alphanumeric, optional)

Maximum Length Example Special characters Description
12 SABBP2P_UAT2 @ . _ SADAD Online Payment ID Alias. The merchant sends this value if the OLP ID is collected on the merchant checkout.

eci(String, optional)

Maximum Length Possible/ expected values Description
16 -ECOMMERCE
- MOTO
E-commerce indicator.
*MOTO and E-commerce indicator clickable in VISA, MASTERCARD and AMEX.

order_description(Alphanumeric, optional)

Maximum Length Example Description
150 iPhone 6-S '/ . _ - # : $ Space It holds the description of the order.

customer_ip(Alphanumeric, optional)

Maximum Length Example Special Characters Description
45 IPv4 → 192.178.1.10
IPv6 → 2001:0db8:3042:0002:5a55:caff:fef6:bdbf
. : It holds the customer’s IP address.
*We support IPv4 and IPv6 as shown in the example.

customer_name(String, optional)

Maximum Length Example Special Characters Description
40 John Smith _ \ / - . 'Space The customer’s name.

merchant_extra(alphanumeric, optional)

Maximum Length Example Special Characters Description
999 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra1(alphanumeric, optional)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra2(alphanumeric, optional)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra3(alphanumeric, optional)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra4(alphanumeric, optional)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra5(alphanumeric, optional)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra5(alphanumeric, optional)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

remember_me(alpha, optional)

Maximum Length Possible/ expected values Description
2 -YES
 -No
This parameter provides you with an indication to whether to save this token for the user based on the user selection.

phone_number(numeric, optional)

Maximum Length Example Special Characters Description
19 00962797219966 + - ( ) Space The customer’s phone number.

settlement_reference(alphanumeric, optional)

Maximum Length Example Special Characters Description
34 00962797219966 - _ . The Merchant submits this value to the FORT. The value is then passed to the Acquiring bank and displayed to the merchant in the Acquirer settlement file.

return_url(alphanumeric, optional)

Maximum Length Example Special Characters Description
400 http://www.merchant.com $ ! = ? # & - _ / : . The URL of the Merchant’s page that will be displayed to the customer when the order is processed.

  Before sending the amount value of any transaction, you have to multiply the value with the currency decimal code according to ISO code 3. For example: If the amount value was 500 AED; according to ISO code 3, you should multiply the value with 100 (2 decimal points); so it will be sent in the request as 50000. Another example: If the amount value was 100 JOD; according to ISO code 3, you should multiply the value with 1000 (3 decimal points); so it will be sent in the request as 100000.

Authorization/ Purchase Response


command(String)

Maximum Length Possible/ expected values Description
20 AUTHORIZATION, PURCHASE A command for payFORT server to understand.

access_code(alphanumeric)

Maximum Length Example Description
20 zx0IPmPy5jp1vAz8Kpg7 Merchant access code that can be found in the backoffice

merchant_identifier(alphanumeric)

Maximum Length Example Description
20 CycHZxVj Merchant ID that can be found in the backoffice

merchant_reference(alphanumeric)

Maximum Length Example Special Characters Description
40 XYZ9239-yu898 - _ . The Merchant’s unique order number.

amount(numeric)

Maximum Length Example Description
10 10000 The transaction’s amount.

currency(String)

Maximum Length Example Description
3 AED The currency of the transaction’s amount in ISO code 3.

language(String)

Maximum Length Possible/ expected values Description
2 en/ar The checkout page and messages language where en is for english and ar for Arabic

customer_email(alphanumeric)

Maximum Length Example Special characters Description
254 customer1@domain.com _ - . @ + The customer’s email.

signature(alphanumeric)

Maximum Length Example Description
200 7cad05f0212ed933c9a5d5dffa31661acf2c827a A string hashed using the Secure Hash Algorithm. Please refer to section Signature

token_name(alphanumeric)

Maximum Length Example Special characters Description
100 Op9Vmp . @ - _ The Token received from the Tokenization process.

payment_option(String)

Maximum Length Possible/ expected values Description
10 - MASTERCARD
- VISA
- AMEX
- SADAD (for Purchase operations only)
- NAPS (for Purchase operations only)
- KNET(for Purchase operations only)
- MADA (for Purchase operations and eci Ecommerce only) Click here to download MADA Branding Document
- MEEZA (for Purchase operations and ECOMMERCE eci only)
Payment option.

sadad_olp(alphanumeric)

Maximum Length Example Special characters Description
12 SABBP2P_UAT2 @ . _ SADAD Online Payment ID Alias. The merchant sends this value if the OLP ID is collected on the merchant checkout.

eci(String)

Maximum Length Possible/ expected values Description
16 -ECOMMERCE
- MOTO
E-commerce indicator.
*MOTO and E-commerce indicator clickable in VISA, MASTERCARD and AMEX.

order_description(Alphanumeric)

Maximum Length Example Description
150 iPhone 6-S '/ . _ - # : $ Space It holds the description of the order.

customer_ip(Alphanumeric)

Maximum Length Example Special Characters Description
45 IPv4 → 192.178.1.10
IPv6 → 2001:0db8:3042:0002:5a55:caff:fef6:bdbf
. : It holds the customer’s IP address.
*We support IPv4 and IPv6 as shown in the example.

customer_name(String)

Maximum Length Example Special Characters Description
40 John Smith _ \ / - . 'Space The customer’s name.

merchant_extra(alphanumeric)

Maximum Length Example Special Characters Description
999 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra1(alphanumeric)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra2(alphanumeric)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra3(alphanumeric)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra4(alphanumeric)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra5(alphanumeric)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

merchant_extra5(alphanumeric)

Maximum Length Example Special Characters Description
250 John Smith . ; / _ - , '@ Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report.

remember_me(alpha)

Maximum Length Possible/ expected values Description
2 -YES
 -No
This parameter provides you with an indication to whether to save this token for the user based on the user selection.

phone_number(numeric)

Maximum Length Example Special Characters Description
19 00962797219966 + - ( ) Space The customer’s phone number.

settlement_reference(alphanumeric)

Maximum Length Example Special Characters Description
34 00962797219966 - _ . The Merchant submits this value to the FORT. The value is then passed to the Acquiring bank and displayed to the merchant in the Acquirer settlement file.

return_url(alphanumeric)

Maximum Length Example Special Characters Description
400 http://www.merchant.com $ ! = ? # & - _ / : . The URL of the Merchant’s page that will be displayed to the customer when the order is processed.

fort_id(numeric)

Maximum Length Example Description
20 149295435400084008 The order’s unique reference returned by our system.

knet_ref_number(alphanumeric)

Maximum Length Example Description
100 832911577112 The reference number of KNET.
*In case of sending KNET payment option.

third_party_transaction_number(alphanumeric)

Maximum Length Example Description
50 9547069411183290 The third party transaction number.
*In case of sending KNET payment option.

authorization_code(alphanumeric)

Maximum Length Example Description
100 P1000000000000372136 The authorization code returned from the 3rd party.

response_message(alphanumeric)

Maximum Length Possible/ expected values Description
150 Please refer to section messages The message description of the response code; it returns according to the request language.

response_code(numeric)

Maximum Length Example Description
5 20064 Response Code carries the value of our system’s response. *The code consists of five digits, the first 2 digits represent the response status, and the last 3 digits represent the response messages.

status(numeric)

Maximum Length Possible/ expected values Description
2 Please refer to section statuses A two-digit numeric value that indicates the status of the transaction.

card_holder_name(String)

Maximum Length Example Description
50 John Smith The card holder name

expiry_date(numeric)

Maximum Length Example Description
4 2105 The card’s expiry date.

card_number(numeric)

Maximum Length Example Description
19 400555*0001 The masked credit card’s number.
Only the MEEZA payment option takes 19 digits card number.
AMEX payment option takes 15 digits card number.
Otherwise, they take 16 digits card number.

  Every parameter the Merchant sends in the Request should be received by the Merchant in the Response -even the optional ones.

Please refer to section Transactions Response Codes for more details about operation’s statuses