Accept payment with saved card¶
Request parameters
Parameters | Type | Mandatory | Description |
---|---|---|---|
version |
string(10) | optional | Protocol version. Default value: 1.0.1 Version 1.0 is deprecated |
order_id |
string(1024) | mandatory | Order ID which is generated by merchant |
merchant_id |
integer(12) | mandatory | Merchant unique ID. Generated by Flitt during merchant registration |
order_desc |
string(1024) | mandatory | Order description. Generated by merchant in UTF-8 always |
amount |
integer(12) | mandatory | Order amount without separator. 1020 (GEL) means 10 lari and 20 tetri |
currency |
string(3) | mandatory | Order currency. Supported values: EUR — Euro USD — US Dollar GBP — Pound sterling mandatory CZK — Czech Republic Koruna GEL - Georgian lari UZS - Uzbekistan sum Full list of supported currencies |
rectoken |
string(40) | mandatory | Card token for recurring transactions. |
signature |
string(40) | mandatory | Order signature. Required to verify merchant request consistency and authenticity. Signature generation algorithm please see at Signature generation for request and response |
cvv2 |
string(4) | optional | Card CVV2/CVC2 code |
client_ip |
string(4) | optional | Client IP |
server_callback_url |
string(2048) | optional | Merchant site URL, where host-to-host callback will be sent after payment completion. See Callbacks for more details on callbacks. |
lifetime |
integer(9) | optional | Order lifetime in seconds. After this period of time, the order will change status to ‘expired’ if the client has not paid it Default value: 36000 Maximum allowed value: 69120000 |
merchant_data |
string(2048) | optional | Any arbitrary set of data that a merchant wants to get back in the response to response_url or/and server_callback_url , and also in reports |
preauth |
string(1) | optional | Parameter supported only for Visa/MasterCard payment method N — the amount is debited from the customer’s card immediately and settled to the merchant account, in accordance with the rules of settlements. Y — amount is held on the customer card account and not charged until the merchant sends a capture request to confirm.Default value: N |
sender_email |
string(256) | optional | Customer email |
product_id |
string(1024) | optional | Merchant product or service id |
Examples
Request example:
{
"request": {
"order_id": "test_12343242",
"merchant_id": "1549901",
"order_desc": "Test order",
"amount": 1000,
"currency": "GEL",
"rectoken": "JcZoqYNosx1HjDoHXWlFU0avVnzYsFAbLBbA",
"server_callback_url": "https://myserver.com/callback",
"signature": "0c0c2374c73267e7be560d80834e4ba28ccda7aa"
}
}
Normal final response: see list of test cards
{
"response": {
"rrn": "111111111111",
"masked_card": "444455XXXXXX1111",
"sender_cell_phone": "",
"sender_account": "",
"currency": "GEL",
"fee": "",
"reversal_amount": "0",
"settlement_amount": "0",
"actual_amount": "1000",
"response_description": "",
"sender_email": "test@test.com",
"order_status": "approved",
"response_status": "success",
"order_time": "13.07.2024 01:23:59",
"actual_currency": "GEL",
"order_id": "test_12343242",
"tran_type": "purchase",
"eci": "5",
"settlement_date": "",
"payment_system": "card",
"approval_code": "123456",
"merchant_id": 1549901,
"settlement_currency": "",
"payment_id": 805243692,
"card_bin": 444455,
"response_code": "",
"card_type": "VISA",
"amount": "1000",
"signature": "b7884b5c4906956fbac4d20390388d913a78c0b0",
"product_id": "",
"merchant_data": "Test merchant data",
"rectoken": "",
"rectoken_lifetime": "",
"verification_status": "",
"parent_order_id": "",
"fee_oplata": "0",
"additional_info": "{\"capture_status\": null, \"capture_amount\": null, \"reservation_data\": \"{}\", \"transaction_id\": 1994930931, \"bank_response_code\": null, \"bank_response_description\": null, \"client_fee\": 0.0, \"settlement_fee\": 0.0, \"bank_name\": null, \"bank_country\": null, \"card_type\": \"VISA\", \"card_product\": \"empty_visa\", \"card_category\": null, \"timeend\": \"13.07.2024 01:24:08\", \"ipaddress_v4\": \"178.54.60.26\", \"payment_method\": \"card\", \"version_3ds\": 1, \"is_test\": true}",
"response_signature_string": "**********|200|GEL|{\"capture_status\": null, \"capture_amount\": null, \"reservation_data\": \"{}\", \"transaction_id\": 1994930931, \"bank_response_code\": null, \"bank_response_description\": null, \"client_fee\": 0.0, \"settlement_fee\": 0.0, \"bank_name\": null, \"bank_country\": null, \"card_type\": \"VISA\", \"card_product\": \"empty_visa\", \"card_category\": null, \"timeend\": \"13.07.2024 01:24:08\", \"ipaddress_v4\": \"178.54.60.26\", \"payment_method\": \"card\", \"version_3ds\": 1, \"is_**********\": true}|200|123456|444455|VISA|GEL|5|0|444455XXXXXX1111|Test merchant data|1549901|**********33694502191|approved|13.07.2024 01:23:59|805243692|card|success|0|111111111111|**********@**********.com|0|purchase"
}
}
Response in case of error:
{
"response": {
"error_code": 1011,
"error_message": "Parameter `amount` is missing",
"request_id": "5htKi0wf7zEHn",
"response_status": "failure"
}
}