Delete Payment Link
Delete Payment Link #
You can use this service to delete previously created payment links.
With API, the merchant can delete payment links they have created before.
- Click to download Postman collection. You can see example codes in Postman Code snippet.
For hash creation for this service: Click for hash method.
Delete Payment Link API Usage #
In the use of this API, the relevant parameters are POSTed as form-data in the Body to "https://paynkolaytest.nkolayislem.com.tr/Vpos/by-link-url-remove" address.
Parameters #
| Parameter | Required | Type | Description |
|---|---|---|---|
| sx | Yes | String | Your assigned sx value |
| q | Yes | String | Reference number of the link to be deleted |
| hashDatav2 | Yes | String | Hash value |
| cardHolderIP | No | String | Your customer's internet IPv4 address |
Hash Generation #
The hash value should be created in the following format:
sx + "|" + q + "|" + merchantSecretKeyThis string should be hashed with SHA512 and Base64 encoded.
Example Hash Code (JavaScript) #
const hashString = [
sx,
q,
merchantSecretKey
].join("|");
const hashedBytes = CryptoJS.SHA512(hashString);
const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);Example Request #
Endpoint: POST https://paynkolaytest.nkolayislem.com.tr/Vpos/by-link-url-remove
Form Data:
sx: "test_merchant_sx_value"
q: "by6353337820250825153001"
hashDatav2: "calculated_hash_value"
cardHolderIP: "192.168.1.1" (optional)Notes #
- The `q` parameter is the reference number returned when the payment link was created.
- If the hash calculation is not done correctly, the transaction will fail.
- The deletion operation cannot be undone.