1. Generate Merchant Keys
A merchant should have an RSA public key in order to integrate direct pay. The RSA key will be generated using this endpoint.
Production Base URL /api/GenToken/GenerateMerchantKeySandbox Base URL /api/GenToken/GenerateMerchantKeySample Request & Response
{
"merchantCode":"xxxxx",
"authKey":"xxxxxxxxxx"
}{
"errorCode": 0,
"errorMessgae": "string",
"result": {
"publicKey": "string"
}
}To obtain the public key, access the publicKey property directly from the API response object as follows:
var publicKey = response.result.publicKey;<RSAKeyValue>
<Modulus>[Binary value]</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue> sample code to post data
Last updated