Skip to content

API Documentation - Installment Information Belongs to You

There are 2 types of Pay N Kolay APIs. You can create your own payment form structure with these APIs.

Section titled “There are 2 types of Pay N Kolay APIs. You can create your own payment form structure with these APIs.”

Merchants use their own payment forms with APIs.

Click to download Postman collection. You can see example codes in Postman Code snippet.

Minimum TLS 1.2 must be used. Click for TLS Connection Problems Solving Guide.

1 - Pay N Kolay API (Version to use if you want to get installments from your own installment tables)

image

  • Payment Service test environment link: “https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/Payment” You can see all relevant variables from the Postman collection.
  • If the transaction is not 3D, payment is received and response parameters are returned to your successURL page. Response Return Parameters
  • If use3D is “true”, a 3D form will come. You can run this form on screen as follows.

image

example.php
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/Payment',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array(
'sx' => '118591467|bScbGDYCtPf7SS1N6PQ6/+58rFhW1WpsWINqvkJFaJlu6bMH2tgPKDQtjeA5vClpzJP24uA0vx7OX53cP3SgUspa4EvYix+1C3aXe++8glUvu9Oyyj3v300p5NP7ro/9K57Zcw==',
'clientRefCode' => '789456|AB76',
'successUrl' => 'https://paynkolay.com.tr/test/success',
'failUrl' => 'https://paynkolay.com.tr/test/fail',
'amount' => '6.00',
'installmentNo' => '2',
'cardHolderName' => 'Tuna Çınar',
'month' => '12',
'year' => '2026',
'cvv' => '001',
'cardNumber' => '4546711234567894',
'use3D' => 'true',
'transactionType' => 'SALES',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
  • When the incoming 3D form is printed on the screen, the relevant bank’s 3D secure window opens and it is expected to enter the 3D secure password here.
3D Secure Window