Payments

Payment Hash Control

Hash control api for payment you can check hash_data is correct or not
post/api/v1/payment/hash_control

Request body

application_keystring required

It is the key of your application on our environment

amountinteger required

It must be send in integer format by multipliying original value with 100. For example 1 must be 100, 3.42 must be 342

card_numberstring required

Card number that will use in payment. This data never stores at our database, application logs. It is only directed to payment system.

hash_datastring required

This is the calculated hash data for this sample payment request. BASE_64_ENCODE( SHA_256( APPLICATION_KEY + CARD_NUMBER + AMOUNT + SECRET_KEY ) )

languagestring

Its default value is tr. If you want to get messages in other languages, please send it. You can find supported languages in the api supported_languages.

Example request

{
  "application_key": "6e3cdaa3-65df-4eff-aed2-9d74387701dd",
  "amount": 1250,
  "card_number": "4508034508034509",
  "hash_data": "sadsaas3e412",
  "language": "tr"
}

Response

Successful Response

response_codestring

You will get 00 for successful response, otherwise another response code for the error. You can reach the list of response codes on the Response Codes Api

messagestring

Here is the explanation of response code

hash_explanationstring

Explanation of how to calculate hash value

hash_sample_keystring

This is the sample hash key for the secret key 12345678

hash_sample_valuestring

This is the sample hash value for the secret key 12345678

Example response

{
  "response_code": "00",
  "message": "Successful"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.