Relevant endpoint and https method information for initiating card payment with TR QR is given below
"amount" and "locationData" parameters are mandatory for ATM Transactions, if the transaction is not an ATM transaction, both parameters must be sent as ""
HTTP Method | URL |
---|---|
POST | /Transactions/StartTRQRCode |
Params | Type | Mandatory | Description |
---|---|---|---|
qrCode | string | Yes | QR Code |
cardHolderFirstName | string | Yes | Card Holder First Name |
cardHolderLastName | string | Yes | Card Holder Last Name |
cardNo | string | Yes | Card Number |
cardExpireDate | string | Yes | Card Expire Date |
amount | decimal | Yes | Transaction Amount ( ATM Transactions ) |
locationData | string | Yes | Location Data ( ATM Transactions ) |
Params | Type |
---|---|
status | integer |
code | string |
message | string |
payload | object |
resultCode | integer |
resultDescription | string |
qrExpireDate | string |
messageReferenecNumber | string |
REQUEST (POST) :
{
"qrCode": "99999921111613423221d1f09a88f8c5739a7954572a2056a2C4EE",
"cardHolderFirstName": "test",
"cardHolderLastName": "test",
"cardNo": "4346100007612917",
"cardExpireDate": "2612",
"amount": "",
"locationData": ""
}
RESPONSE:
{
"status": 0,
"code": null,
"message": null,
"payload": {
"resultCode": 0,
"resultDescription": "SUCCESS",
"qrExpireDate": null,
"messageReferenceNumber": "d8b521ee-aed1-48ae-a869-bab9b6d552cd"
}
}
Fail Response:
{
"status": 2,
"code": "324",
"message": "Kare kod geçerlilik süresi doldu",
"payload": null
}