Entegrasyon
APIPay
İmza Hesaplama Algoritması

İmza Hesaplama Algoritması

Aşağıdaki değerleri uç uca birleştirilir

  • İsteğin yapıldığı URL (hostname, protocol ve query string dahil)
    • Merchant No
    • Terminal No
    • Eğer mevcut ise isteğin body'si
  • Birleştirilen string'in SHA-512 hash'i hesaplanır

Örnek 1:

Request URL

https://merchantpfpayment-gateway-qa.hepsipay.com/apipay/cards/loyalties

Merchant No

1000

Terminal No

100

Request Body

{
    "accountKey": "905110001111",
    "cardToken": "oERWRRvtRQel68/yIXQ/Z+EIr7kD1q7gx/Jm2zI6PlDqB3Nl1/Vfnw4f53X+AM5U7lp/7eOKPvynpfnb7fYeGqkCWTgOMAqwRNwNyx0Mxes=",
    "clientIp": "192.168.10.11",
    "amount": 100
}

Birleştirilmiş String

https://merchantpfpayment-gateway-qa.hepsipay.com/apipay/cards/loyalties1000100{
"accountKey": "905110001111",
"cardToken": "oERWRRvtRQel68/yIXQ/Z+EIr7kD1q7gx/Jm2zI6PlDqB3Nl1/Vfnw4f53X+AM5U7lp/7eOKPvynpfnb7fYeGqkCWTgOMAqwRNwNyx0Mxes=",
"clientIp": "192.168.10.11",
"amount": 100
}

Secret Key

TestSecretKey

Signature

b6da16cb9bc14d927a8b9be1e066adf1c1cf30ca887a486a322e5922cca3a3836edd4ece5e423f97f198ddeed1309162bcb3916bbeda858affc058bb4ba91244

Örnek 2:

Request URL

https://merchantpfpayment-gateway-qa.hepsipay.com/apipay/accounts?accountKey=905110001111&merchantLinkRelationValue=test%40hepsipay.com

Merchant No

1000

Terminal No

100

Request Body

Birleştirilmiş String

https://merchantpfpayment-gateway-qa.hepsipay.com/apipay/accounts?accountKey=905110001111&merchantLinkRelationValue=test%40hepsipay.com1000100

Secret Key

TestSecretKey

Signature

b6da16cb9bc14d927a8b9be1e066adf1c1cf30ca887a486a322e5922cca3a3836edd4ece5e423f97f198ddeed1309162bcb3916bbeda858affc058bb4ba91244