{
	"info": {
		"_postman_id": "2cc75ba2-1618-407c-a69e-8932f5a65762",
		"name": "Paynkolay - Sanal Pos",
		"description": "### Paynkolay Sanal POS test alanına hoş geldiniz.\n\nBuradaki request'leri kullanarak API'mızın nasıl çalıştığına dair testleri yapabilirsiniz. Buradakı alanlar örnek değerler ile doldurulmuştur.  \n\nEntegrasyon dokümantasyonumuz buradadır: [https://paynkolay.com.tr/entegrasyon/index.html](https://paynkolay.com.tr/entegrasyon/index.html)",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "48556704",
		"_collection_link": "https://osmanfbayram-4766819.postman.co/workspace/osman-bayram's-Workspace~e44551c4-1fdf-444f-8be0-0ee7751bf850/collection/48556704-2cc75ba2-1618-407c-a69e-8932f5a65762?action=share&source=collection_link&creator=48556704"
	},
	"item": [
		{
			"name": "API",
			"item": [
				{
					"name": "Taksit Bilgisi Siz'e Ait",
					"item": [
						{
							"name": "Ödeme",
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											"const sx = pm.collectionVariables.get(\"sx\");\r",
											"const clientRefCode = pm.request.body.formdata.get(\"clientRefCode\");\r",
											"const amount = pm.request.body.formdata.get(\"amount\");\r",
											"const successUrl = pm.request.body.formdata.get(\"successUrl\");\r",
											"const failUrl = pm.request.body.formdata.get(\"failUrl\");\r",
											"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");\r",
											"const rnd = pm.request.body.formdata.get(\"rnd\");\r",
											"const customerKey = \"\"; // Bu değer boş çünkü kartı kaydetmiyoruz.\r",
											"\r",
											"const hashString = [\r",
											"    sx,\r",
											"    clientRefCode,\r",
											"    amount,\r",
											"    successUrl,\r",
											"    failUrl,\r",
											"    rnd,\r",
											"    customerKey,\r",
											"    merchantSecretKey\r",
											"].join(\"|\");\r",
											"\r",
											"console.log(\"String to be hashed:\", hashString);\r",
											"const hashedBytes = CryptoJS.SHA512(hashString);\r",
											"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);\r",
											"console.log(\"Generated hashDatav2:\", hashDatav2);\r",
											"pm.variables.set(\"hashDatav2\", hashDatav2);\r",
											""
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "formdata",
									"formdata": [
										{
											"key": "sx",
											"value": "{{sx}}",
											"description": "Size verilen sx değeriniz. Collection değişkenleri  kısmından değiştirebilirsiniz.",
											"type": "text"
										},
										{
											"key": "clientRefCode",
											"value": "789456|AB76",
											"description": "Kendi referans numaranız",
											"type": "text"
										},
										{
											"key": "successUrl",
											"value": "https://paynkolay.com.tr/test/success",
											"description": "3D Secure İşlem sonucunu ise bu adrese post ediyoruz.",
											"type": "text"
										},
										{
											"key": "failUrl",
											"value": "https://paynkolay.com.tr/test/fail",
											"description": "3D Secure İşlem başarısız ise bu adrese sonucunu post ediyoruz.",
											"type": "text"
										},
										{
											"key": "amount",
											"value": "6.00",
											"description": "Decimal. ( Kuruş ayracı olarak nokta kullanılmalıdır. )",
											"type": "text"
										},
										{
											"key": "installmentNo",
											"value": "2",
											"description": "Taksit sayısıdır.",
											"type": "text"
										},
										{
											"key": "cardHolderName",
											"value": "Tuna Çınar",
											"description": "Kart üzerindeki isim",
											"type": "text"
										},
										{
											"key": "month",
											"value": "12",
											"description": "Kredi kartı üzerindeki geçerlilik tarihi Ay bilgisidir.",
											"type": "text"
										},
										{
											"key": "year",
											"value": "2026",
											"description": "Kredi kartı üzerindeki geçerlilik tarihi Yıl bilgisidir.",
											"type": "text"
										},
										{
											"key": "cvv",
											"value": "001",
											"description": "Kredi kartının arkasındaki CVV numarasıdır.",
											"type": "text"
										},
										{
											"key": "cardNumber",
											"value": "4546711234567894",
											"description": "Kredi kartı numarasıdır.",
											"type": "text"
										},
										{
											"key": "use3D",
											"value": "true",
											"description": "\"true\" ya da \"false\" gönderilmelidir. İşlemin 3D secure yapılmasını sağlar",
											"type": "text"
										},
										{
											"key": "transactionType",
											"value": "SALES",
											"description": "\"SALES\" olmalıdır.",
											"type": "text"
										},
										{
											"key": "rnd",
											"value": "29-08-2025 14:23:57",
											"description": "DateTime.Now fonksiyonu ile işlem tarihini bize göndermeniz gerekmektedir. Örn:09-08-2022 15:24:22",
											"type": "text"
										},
										{
											"key": "hashDatav2",
											"value": "{{hashDatav2}}",
											"description": "https://paynkolay.com.tr/entegrasyon/04-hash-request.php sayfamızda açıklanmıştır.\n$sx . \"|\" . $clientRefCode . \"|\" . $amount . \"|\" . $successUrl . \"|\" . $failUrl . \"|\" . $rnd . \"|\" . $customerKey . \"|\" . $merchantSecretKey",
											"type": "text"
										},
										{
											"key": "environment",
											"value": "API",
											"description": "\"API\" girilmelidir.",
											"type": "text"
										},
										{
											"key": "currencyNumber",
											"value": "949",
											"description": "TL için 949 girilmelidir.",
											"type": "text"
										},
										{
											"key": "MerchantCustomerNo",
											"value": "MS-34345",
											"description": "Alt Üye İşyeri Numarası",
											"type": "text"
										},
										{
											"key": "cardHolderIP",
											"value": "23.245.245.222",
											"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
											"type": "text"
										},
										{
											"key": "description",
											"value": "Açıklama girebilirsiniz",
											"description": "İşleme ait açıklama alanı",
											"type": "text",
											"disabled": true
										},
										{
											"key": "namesurname",
											"value": "Tuna Atlas",
											"description": "isim soyisim",
											"type": "text",
											"disabled": true
										},
										{
											"key": "tckn",
											"value": "31825408926",
											"description": "tc kimlik no",
											"type": "text",
											"disabled": true
										},
										{
											"key": "phone",
											"value": "5553900000",
											"description": "telefon bilgisi",
											"type": "text",
											"disabled": true
										},
										{
											"key": "email",
											"value": "tuna.atlas@mail.com",
											"description": "mail adresi",
											"type": "text",
											"disabled": true
										},
										{
											"key": "adress",
											"value": "Adres bilgisi",
											"type": "text",
											"disabled": true
										},
										{
											"key": "csCustomerKey",
											"value": "",
											"description": "Kart saklamak için customerKey olarak TC kimlik no, Cep telefon numarası, Passaport numarası kullanılabilir. İşlem 3D secure olmalıdır.",
											"type": "text",
											"disabled": true
										},
										{
											"key": "csAutoSave",
											"value": "false",
											"description": "true gönderilirse ve üye işyerinin kart saklama yetkisi varsa, kart kayıt edilir.",
											"type": "text",
											"disabled": true
										}
									]
								},
								"url": {
									"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/Payment",
									"protocol": "https",
									"host": [
										"paynkolaytest",
										"nkolayislem",
										"com",
										"tr"
									],
									"path": [
										"Vpos",
										"v1",
										"Payment"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Taksit Bilgisi Paynkolay'a Ait",
					"item": [
						{
							"name": "Taksit verilerini Çek",
							"protocolProfileBehavior": {
								"disabledSystemHeaders": {
									"user-agent": true
								}
							},
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "formdata",
									"formdata": [
										{
											"key": "sx",
											"value": "{{sx}}",
											"description": "String. Sx değeri size verilecektir. Test işlemlerinizde bu sx değerini kullanabilirsiniz.",
											"type": "text"
										},
										{
											"key": "amount",
											"value": "10.04",
											"description": "Decimal.  Örn: 30.00 ( kuruş ayracı olarak nokta kullanılmalıdır. )",
											"type": "text"
										},
										{
											"key": "cardNumber",
											"value": "4155650100416111",
											"description": "Kredi kartı numarasının ilk 8 hanesi ya da tamamı girilebilir",
											"type": "text"
										},
										{
											"key": "iscardvalid",
											"value": "false",
											"description": "false ise sadece bin numarası ile işlem yapılır. true ise kartı geçerli bir kart olup olmadığı kontrol edilir",
											"type": "text"
										},
										{
											"key": "hashData",
											"value": "",
											"type": "text",
											"disabled": true
										}
									]
								},
								"url": {
									"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/PaymentInstallments",
									"protocol": "https",
									"host": [
										"paynkolaytest",
										"nkolayislem",
										"com",
										"tr"
									],
									"path": [
										"Vpos",
										"Payment",
										"PaymentInstallments"
									]
								}
							},
							"response": []
						},
						{
							"name": "Ödeme",
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											"const sx = pm.collectionVariables.get(\"sx\");",
											"const clientRefCode = pm.request.body.formdata.get(\"clientRefCode\");",
											"const amount = pm.request.body.formdata.get(\"amount\");",
											"const successUrl = pm.request.body.formdata.get(\"successUrl\");",
											"const failUrl = pm.request.body.formdata.get(\"failUrl\");",
											"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
											"if (merchantSecretKey === undefined) {",
											"    throw \"Merchant secret key is not set in the collection variables.\";",
											"}",
											"const rnd = pm.request.body.formdata.get(\"rnd\")",
											"const csCustomerKey = \"\"; // Empty because we are not saving the card",
											"",
											"const hashString = [",
											"    sx,",
											"    clientRefCode,",
											"    amount,",
											"    successUrl,",
											"    failUrl,",
											"    rnd,",
											"    csCustomerKey,",
											"    merchantSecretKey",
											"].join(\"|\");",
											"",
											"console.log(\"String to be hashed:\", hashString);",
											"const hashedBytes = CryptoJS.SHA512(hashString);",
											"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
											"console.log(\"Generated hashDatav2:\", hashDatav2);",
											"pm.variables.set(\"hashDatav2\", hashDatav2);",
											""
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disabledSystemHeaders": {
									"user-agent": true
								}
							},
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "formdata",
									"formdata": [
										{
											"key": "sx",
											"value": "{{sx}}",
											"description": "String. Sx değeri size verilecektir. Test işlemlerinizde bu sx değerini kullanabilirsiniz.",
											"type": "text"
										},
										{
											"key": "clientRefCode",
											"value": "789456",
											"description": "Sizin kendi referans numaranızdır.",
											"type": "text"
										},
										{
											"key": "successUrl",
											"value": "https://paynkolay.com.tr/test/success",
											"description": "3D Secure işlemlerin sonucunu bu adrese post ediyoruz.",
											"type": "text"
										},
										{
											"key": "failUrl",
											"value": "https://paynkolay.com.tr/test/fail",
											"description": "Bu adrese başarılı olmayan 3D Secure işlemlerin sonucunu post ediyoruz.",
											"type": "text"
										},
										{
											"key": "amount",
											"value": "10.04",
											"description": "Decimal. ( Kuruş ayracı olarak nokta kullanılmalıdır. )",
											"type": "text"
										},
										{
											"key": "installmentNo",
											"value": "1",
											"description": "Taksit sayısıdır.",
											"type": "text"
										},
										{
											"key": "cardHolderName",
											"value": "Ömer Çınaroğlu",
											"description": "Kredi kartı sahibinin ismidir.",
											"type": "text"
										},
										{
											"key": "month",
											"value": "12",
											"description": "Kredi kartı üzerindeki geçerlilik tarihi Ay bilgisidir.",
											"type": "text"
										},
										{
											"key": "year",
											"value": "2026",
											"description": "Kredi kartı üzerindeki geçerlilik tarihi Yıl bilgisidir.",
											"type": "text"
										},
										{
											"key": "cvv",
											"value": "001",
											"description": "Kredi kartının arka yüzündeki CVV bilgisidir.",
											"type": "text"
										},
										{
											"key": "cardNumber",
											"value": "4546711234567894",
											"description": "Kredi kartı numarasıdır.",
											"type": "text"
										},
										{
											"key": "EncodedValue",
											"value": "NnpWRDJxcGt1UzNqSmFDSUZYZlFLTzE2MythRURIeHB0bnlkQnNJVlBLOTVKdEEzcUI3MStpbXFoZnZCUDJBTE9uNjVvVTZpYldoRUI3Zk82a2tlQjdnWDJKUXVjVmhJYm5SY2tKWTRxQnorZ1FxTWVWT3IyK0NFb2FxTWw2QUV2Mkt5Z0pZS2paaXdyMkpQYU0zUDJkZXZYU2JNR3pwWlBxSEZRU3JWV0prR3pWclJLOFUvSFBCQ25sN1VlRk1sUzR2eHdkb2xuc0NiTnNZTUs5bnFXQT09",
											"description": "PaymentInstallments servisinden dönen EncodedValue girilmelidir.",
											"type": "text"
										},
										{
											"key": "use3D",
											"value": "true",
											"description": "\"true\" ya da boş gönderilmelidir. İşlemin 3D secure yapılmasını sağlar",
											"type": "text"
										},
										{
											"key": "transactionType",
											"value": "SALES",
											"description": "\"SALES\" olmalıdır.",
											"type": "text"
										},
										{
											"key": "hosturl",
											"value": "http://localhost:5000/",
											"description": "Web sitenizin adresidir.",
											"type": "text"
										},
										{
											"key": "rnd",
											"value": "29-08-2025 14:23:57",
											"description": "DateTime.Now fonksiyonu ile işlem tarihini bize göndermeniz gerekmektedir. Örn:09-08-2022 15:24:22",
											"type": "text"
										},
										{
											"key": "hashDatav2",
											"value": "{{hashDatav2}}",
											"description": "String. Request hashi şu şekilde oluşturulmaktadır. https://paynkolay.com.tr/entegrasyon/04-hash-request.php",
											"type": "text"
										},
										{
											"key": "environment",
											"value": "API",
											"description": "\"API\" yazılmalıdır.",
											"type": "text"
										},
										{
											"key": "description",
											"value": "İşleme ait açıklama",
											"description": "Açıklama alanı",
											"type": "text"
										},
										{
											"key": "namesurname",
											"value": "Tuna Atlas",
											"description": "isim soyisim",
											"type": "text"
										},
										{
											"key": "tckn",
											"value": "23812309765",
											"description": "TC Kimlik No",
											"type": "text"
										},
										{
											"key": "phone",
											"value": "5554090909",
											"description": "telefon numarası",
											"type": "text"
										},
										{
											"key": "email",
											"value": "mail@mail.com",
											"description": "mail adresi",
											"type": "text"
										},
										{
											"key": "adress",
											"value": "Adres bilgisi",
											"description": "Adres bilgisi",
											"type": "text"
										},
										{
											"key": "description",
											"value": "İşleme dair diğer bilgiler",
											"description": "işleme dair bilgiler",
											"type": "text"
										},
										{
											"key": "MerchantCustomerNo",
											"value": "M-252097",
											"description": "Alt Üye İşyeri Numarası",
											"type": "text"
										},
										{
											"key": "cardHolderIP",
											"value": "23.245.245.222",
											"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
											"type": "text"
										},
										{
											"key": "csAutoSave",
											"value": "false",
											"type": "text",
											"disabled": true
										},
										{
											"key": "csCustomerKey",
											"value": "",
											"description": "Kart saklamak için customerKey olarak TC kimlik no, Cep telefon numarası, Passaport numarası kullanılabilir. İşlem 3D secure olmalıdır.",
											"type": "text",
											"disabled": true
										}
									]
								},
								"url": {
									"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/Payment",
									"protocol": "https",
									"host": [
										"paynkolaytest",
										"nkolayislem",
										"com",
										"tr"
									],
									"path": [
										"Vpos",
										"Payment",
										"Payment"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "İptal Servisi",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx-cancel\");\r",
									"const clientRefCode = pm.request.body.formdata.get(\"referenceCode\");\r",
									"const type_value = pm.request.body.formdata.get(\"type\")\r",
									"const amount = pm.request.body.formdata.get(\"amount\");\r",
									"const trxDate = pm.request.body.formdata.get(\"trxDate\")\r",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");\r",
									"\r",
									"const hashString = [\r",
									"    sx,\r",
									"    clientRefCode,\r",
									"    type_value,\r",
									"    amount,\r",
									"    trxDate,\r",
									"    merchantSecretKey\r",
									"].join(\"|\");\r",
									"\r",
									"console.log(\"String to be hashed:\", hashString);\r",
									"const hashedBytes = CryptoJS.SHA512(hashString);\r",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);\r",
									"console.log(\"Generated hashDatav2:\", hashDatav2);\r",
									"pm.variables.set(\"hashDatav2\", hashDatav2);\r",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx-cancel}}",
									"description": "İptal sx değeri size ayrıca verilecektir.",
									"type": "text"
								},
								{
									"key": "referenceCode",
									"value": "IKSIRPF443700",
									"description": "İptal edilecek işlemin Paynkolay'daki referans numarasıdır. IKSIRPF ile başlar.",
									"type": "text"
								},
								{
									"key": "type",
									"value": "cancel",
									"description": "String. İptal için ( aynı gün yapılan işlemler ) \"cancel\", iade için \"refund\" girilmeli.",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "1.00",
									"type": "text"
								},
								{
									"key": "trxDate",
									"value": "2025.08.15",
									"description": "Ödemenin çekildiği tarih girilmeli.Tarih formatı yyyy.aa.gg",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "$sx . \"|\" . $referenceCode . \"|\" . $type . \"|\" . $amount . \"|\" . $trxDate . \"|\" . $merchantSecretKey;",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/CancelRefundPayment",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"v1",
								"CancelRefundPayment"
							]
						}
					},
					"response": []
				},
				{
					"name": "İade Servisi",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx-cancel\");\r",
									"const clientRefCode = pm.request.body.formdata.get(\"referenceCode\");\r",
									"const type_value = pm.request.body.formdata.get(\"type\")\r",
									"const amount = pm.request.body.formdata.get(\"amount\");\r",
									"const trxDate = pm.request.body.formdata.get(\"trxDate\")\r",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");\r",
									"\r",
									"const hashString = [\r",
									"    sx,\r",
									"    clientRefCode,\r",
									"    type_value,\r",
									"    amount,\r",
									"    trxDate,\r",
									"    merchantSecretKey\r",
									"].join(\"|\");\r",
									"\r",
									"console.log(\"String to be hashed:\", hashString);\r",
									"const hashedBytes = CryptoJS.SHA512(hashString);\r",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);\r",
									"console.log(\"Generated hashDatav2:\", hashDatav2);\r",
									"pm.variables.set(\"hashDatav2\", hashDatav2);\r",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx-cancel}}",
									"description": "İptal sx değeri size ayrıca verilecektir.",
									"type": "text"
								},
								{
									"key": "referenceCode",
									"value": "IKSIRPF428910",
									"description": "İptal edilecek işlemin Paynkolay'daki referans numarasıdır. IKSIRPF ile başlar.",
									"type": "text"
								},
								{
									"key": "type",
									"value": "refund",
									"description": "String. İptal için ( aynı gün yapılan işlemler ) \"cancel\", iade için \"refund\" girilmelidir.",
									"type": "text"
								},
								{
									"key": "trxDate",
									"value": "2025.03.26",
									"description": "Ödemenin çekildiği tarih girilmeli.Tarih formatı yyyy.mm.dd",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "1.50",
									"description": "iade edilecek tutar",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "$sx . \"|\" . $referenceCode . \"|\" . $type . \"|\" . $amount . \"|\" . $trxDate . \"|\" . $merchantSecretKey;",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/CancelRefundPayment",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"v1",
								"CancelRefundPayment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Listeleme Servisi",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx-list\");\r",
									"const startDate = pm.request.body.formdata.get(\"startDate\");\r",
									"const endDate = pm.request.body.formdata.get(\"endDate\");\r",
									"const clientRefCode = pm.request.body.formdata.get(\"clientRefCode\");\r",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");\r",
									"\r",
									"const hashString = [\r",
									"    sx,\r",
									"    startDate,\r",
									"    endDate,\r",
									"    clientRefCode,\r",
									"    merchantSecretKey\r",
									"].join(\"|\");\r",
									"\r",
									"console.log(\"String to be hashed:\", hashString);\r",
									"const hashedBytes = CryptoJS.SHA512(hashString);\r",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);\r",
									"console.log(\"Generated hashDatav2:\", hashDatav2);\r",
									"pm.variables.set(\"hashDatav2\", hashDatav2);\r",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx-list}}",
									"description": "SX değeri size ayrıca verilecektir.",
									"type": "text"
								},
								{
									"key": "startDate",
									"value": "10.08.2025",
									"description": "Başlagıç tarihi \"DD-MM-YYYY\"",
									"type": "text"
								},
								{
									"key": "endDate",
									"value": "15.08.2025",
									"description": "Bitiş tarihi \"DD-MM-YYY\"",
									"type": "text"
								},
								{
									"key": "clientRefCode",
									"value": "PSL20250815537403465308767322",
									"description": "Kendi referans numaranız",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx|startDate|endDate|clientRefCode|merchantSecretKey",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/PaymentList",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"PaymentList"
							]
						}
					},
					"response": []
				},
				{
					"name": "Raporlama Servisi",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx-list\");\r",
									"const startDate = pm.request.body.formdata.get(\"startDate\");\r",
									"const endDate = pm.request.body.formdata.get(\"endDate\");\r",
									"const clientReferenceCode = pm.request.body.formdata.get(\"clientReferenceCode\");\r",
									"const referenceCode = pm.request.body.formdata.get(\"referenceCode\");\r",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");\r",
									"\r",
									"const hashString = [\r",
									"    sx,\r",
									"    startDate,\r",
									"    endDate,\r",
									"    clientReferenceCode,\r",
									"    referenceCode,\r",
									"    merchantSecretKey\r",
									"].join(\"|\");\r",
									"\r",
									"console.log(\"String to be hashed:\", hashString);\r",
									"const hashedBytes = CryptoJS.SHA512(hashString);\r",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);\r",
									"console.log(\"Generated hashDatav2:\", hashDatav2);\r",
									"pm.variables.set(\"hashDatav2\", hashDatav2);\r",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx-list}}",
									"description": "Listeleme SX değeriniz.",
									"type": "text"
								},
								{
									"key": "startDate",
									"value": "05.04.2026",
									"description": "Başlangıç tarihi \"DD.MM.YYYY\"",
									"type": "text"
								},
								{
									"key": "endDate",
									"value": "10.04.2026",
									"description": "Bitiş tarihi \"DD.MM.YYYY\"",
									"type": "text"
								},
								{
									"key": "clientReferenceCode",
									"value": "",
									"description": "İşlemde kullandığınız kendi referans kodunuz.",
									"type": "text"
								},
								{
									"key": "referenceCode",
									"value": "",
									"description": "Paynkolay tarafından verilen referans kodu (ör: IKSIRPF...).",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx|startDate|endDate|clientReferenceCode|referenceCode|merchantSecretKey",
									"type": "text"
								},
								{
									"key": "pageCount",
									"value": "1",
									"description": "Sayfa indeksi (1'den başlar).",
									"type": "text"
								},
								{
									"key": "pageSize",
									"value": "5",
									"description": "Bir seferde almak istediğiniz sonuç sayısı.",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/PfTransactionReportList",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"PfTransactionReportList"
							]
						}
					},
					"response": []
				},
				{
					"name": "Taksit Tablosu",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const date =  pm.request.body.formdata.get(\"date\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"",
									"const hashString = [",
									"    sx,",
									"    date,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"type": "text"
								},
								{
									"key": "date",
									"value": "31.12.2025",
									"description": "GG.AA.YYYY şeklinde tarih bilgisi",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+’|’+date+’|’+ MerchantSecretKey",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/GetMerchandInformation",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"GetMerchandInformation"
							]
						}
					},
					"response": []
				},
				{
					"name": "Ödeme Tamamlama Servisi",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "Size verilen sx değeriniz.",
									"type": "text"
								},
								{
									"key": "referenceCode",
									"value": "IKSIRPF450511",
									"description": "Odeme referans kodu",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/CompletePayment",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"v1",
								"CompletePayment"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Pay By Link - Ortak Ödeme Sayfası",
			"item": [
				{
					"name": "Link Oluştur",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const clientRefCode = pm.request.body.formdata.get(\"clientRefCode\");",
									"const amount = pm.request.body.formdata.get(\"amount\");",
									"const successUrl = pm.request.body.formdata.get(\"successUrl\");",
									"const failUrl = pm.request.body.formdata.get(\"failUrl\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"const rnd = pm.request.body.formdata.get(\"rnd\")",
									"const customerKey = \"\"",
									"const hashString = [",
									"    sx,",
									"    clientRefCode,",
									"    amount,",
									"    successUrl,",
									"    failUrl,",
									"    rnd,",
									"    customerKey,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									" ",
									" "
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "size verilen sx değeri",
									"type": "text"
								},
								{
									"key": "clientRefCode",
									"value": "63533378",
									"description": "size ait referans numaranız",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "1000.00",
									"description": "tutar",
									"type": "text"
								},
								{
									"key": "successUrl",
									"value": "https://paynkolay.com.tr/test/success",
									"description": "3D Secure işlem sonucunu bu adrese yönlendiriyoruz.",
									"type": "text"
								},
								{
									"key": "failUrl",
									"value": "https://paynkolay.com.tr/test/fail",
									"description": "3D Secure işlem başarısız ise sonucunu bu adrese yönlendiriyoruz",
									"type": "text"
								},
								{
									"key": "rnd",
									"value": "20251227155649",
									"description": "timestamp önerilir",
									"type": "text"
								},
								{
									"key": "use3D",
									"value": "true",
									"description": "3D secure isteniyorsa true olmalı",
									"type": "text"
								},
								{
									"key": "currencyCode",
									"value": "949",
									"description": "TL için 949 girilir",
									"type": "text"
								},
								{
									"key": "transactionType",
									"value": "SALES",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "$sx . \"|\" . $clientRefCode . \"|\" . $amount . \"|\" . $successUrl . \"|\" . $failUrl . \"|\" . $rnd . \"|\" . $customerKey . \"|\" . $merchantSecretKey;",
									"type": "text"
								},
								{
									"key": "instalments",
									"value": "8",
									"description": "taksit girerseniz girdiğiniz taksit kadar listelenir.",
									"type": "text"
								},
								{
									"key": "second",
									"value": "",
									"description": "gireceğiniz saniye kadar ödeme formu aktif olur",
									"type": "text"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								},
								{
									"key": "detail",
									"value": "true",
									"description": "Ayrıntı",
									"type": "text"
								},
								{
									"key": "inputNamesurname",
									"value": "Tuna Çınar",
									"description": "Otomatik doldurulacak isim",
									"type": "text"
								},
								{
									"key": "inputDescription",
									"value": "Firma ürün satışı",
									"description": "Otomatik doldurulucak açıklama",
									"type": "text"
								},
								{
									"key": "inputEmail",
									"value": "tuna@gmail.com",
									"description": "Otomatik doldurulacak email",
									"type": "text"
								},
								{
									"key": "inputAddress",
									"value": "Adres bilgisi",
									"description": "Otomatik doldurulacak adres",
									"type": "text"
								},
								{
									"key": "inputTckn",
									"value": "23454543544",
									"description": "Otomatik doldurulacak TC kimlik no",
									"type": "text"
								},
								{
									"key": "inputPhone",
									"value": "5555555555",
									"description": "Otomatik doldurulacak Numara",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/by-link-create",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"by-link-create"
							]
						}
					},
					"response": []
				},
				{
					"name": "Link Sil",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const q = pm.request.body.formdata.get(\"q\")",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									" ",
									"const hashString = [",
									"    sx,",
									"    q,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									" "
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "size verilen sx değeri",
									"type": "text"
								},
								{
									"key": "q",
									"value": "by6353337820250825153001",
									"description": "size ait referans numaranız",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "$sx . \"|\" . $q . \"|\" . $merchantSecretKey;",
									"type": "text"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/by-link-url-remove",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"by-link-url-remove"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Pay By Link - Send Link",
			"item": [
				{
					"name": "Link Oluştur",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const fullName = pm.request.body.formdata.get(\"FULL_NAME\");",
									"const email = pm.request.body.formdata.get(\"EMAIL\");",
									"const gsm = pm.request.body.formdata.get(\"GSM\");",
									"const amount = pm.request.body.formdata.get(\"AMOUNT\");",
									"const link_expiration_time = pm.request.body.formdata.get(\"LINK_EXPIRATION_TIME\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									" ",
									"const hashString = [",
									"    sx,",
									"    fullName,",
									"    email,",
									"    gsm,",
									"    amount,",
									"    link_expiration_time,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "TOKEN",
									"value": "{{sx}}",
									"description": "sx değeri",
									"type": "text"
								},
								{
									"key": "FULL_NAME",
									"value": "Tuna Atlas",
									"description": "isim",
									"type": "text"
								},
								{
									"key": "EMAIL",
									"value": "tuna.atlas@gmail.com",
									"description": "email",
									"type": "text"
								},
								{
									"key": "GSM",
									"value": "5555555555",
									"description": "cep telefonu",
									"type": "text"
								},
								{
									"key": "LINK_AMOUNT_FIXING_TYPE",
									"value": "FIXED",
									"description": "LINK_AMOUNT_FIXING_TYPE degeri NOT_FIXED set edilemsi durumunda tutar kontrolü yapılmamakta ve degeri müşteri girebilmektedir.",
									"type": "text"
								},
								{
									"key": "AMOUNT",
									"value": "100.00",
									"description": "tutar",
									"type": "text"
								},
								{
									"key": "LINK_EXPIRATION_TIME",
									"value": "2025-12-30",
									"description": "link son kullanım tarihi YYYY-AA-GG",
									"type": "text"
								},
								{
									"key": "IS_3D_MUST",
									"value": "true",
									"description": "3D secure",
									"type": "text"
								},
								{
									"key": "PAYMENT_SUBJECT",
									"value": "Odemenin basligi",
									"description": "Odemenin basligi",
									"type": "text"
								},
								{
									"key": "EXPLANATION",
									"value": "EXPLANATION",
									"description": "Açıklama",
									"type": "text"
								},
								{
									"key": "CALLBACK_URL",
									"value": "https://paynkolay.com.tr/test/callback",
									"description": "işlem sonucu size POST edilsin isterseniz bu URL adresi giriniz.",
									"type": "text"
								},
								{
									"key": "IMAGE_URL",
									"value": "iVBORw0KGgoAAAANSUhEUgAAAMgAAAApCAYAAABwQGa5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABA6SURBVHgB7V1dcttGEp4BwJiO6A3zkoqd1IY6QejI3vJbqBNYPkGkE0g5gakT2DqB6BNIOoGpt1RZXtMnEFObWK68hC5LCR0CmO0eACRm0I0fSmVTtr4qFckBMH+Y7un5umckxRUuJW78cLKuHLGbvaIOT49udcQCoHHn964QzsPslfDg9OibNXEJ4IgrXEooqdr0hXAgFgdtJn2R6piLKwGpiKU7r7ZurJwcN1Ze/9m48/qR+FCQ8nsqWUlnKBYG7nd0utMXlwRXAlIBaNZIIR8pKVpCqiYMx62lH35bFx8EktTOUL+F0M7N9p/YP2QdfU8MxSXBlYBUgHLCrN3suj+K94xm+6QFtWlS1zx/vBAC4nunjHmlRuNfbg7FJcGVgFSAlGKUTQ0OxXuG7/kt+oocjAbLI7EAUMLl1h8vxSXClYBUgFJOz/gtxTBw3b5473A6dHrwq1gQSAVmKIXFIhEKcSUgFXB6dLMvVfhklhJsfyBzYfHZIY5EcC4Pg4XwxByo3ztuuUFN28C1yWR4UdN6s33cHNdF0/O9FpgRw/Evy0OxQEDb35fip+iXOjx79m2vwuPT9tXHYnS+PkN2SBHpF8sOna++SCJk6yiVOxQlkJT9oceALHvjjZXf14BC3AS7oh0xODMopVmJfhCI7fGgmkZt3PlfB/Jck8K9r9khI2M5grIGKgyenP23eDAiyxS6YrpoDlxRWsMj6zKpjWe0bRAc2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0g7npXcpCh2RZwF4GQ9p4tzvmsRYg99WqA7xc5HtOvVnuXU7H0IbRxTk1UV0nbeHv5PDUDLom+nY/+h38f2zEdRGXV2P3zgZR2Zjs2xq5wgwEWElPZBEaKL3lg7+jXynqPHv24cpBabKxdAD1YHziKef60ES4iI9rUXncn1qUExJ8Ak52dNPejwiREB3FFInJKUjZVXj619xpdugX4DvPxK0qyNjAMZ+Tgit5Cafh+YHp0U4rGbGAavmtEZZNoH0IcF5uMqTOGnAuw3YOwqR0DY4I6Slec5rnORQAh6ASKP/8fO1n0K4BfdpcEeJesIIwhOjS6jcCCAm9/S52cVhoug/yHY8Rp/L18Jx8eBsg5CBrnnLEubX/4YqMMpty6Ctoo3JaGphV5S98Y//StT5eNEeYenmJ4UWqQkL4W/4wpXqAIUFO14REGZhsBgyEr4BjzlfamcXlnr4f+G88PqVDq4+AAAAABJRU5ErkJggg==",
									"description": "resmi base64 olarak göndermelisiniz.",
									"type": "text"
								},
								{
									"key": "SEND_SMS",
									"value": "true",
									"description": "SMS gönderilsin mi? true evet demektedir",
									"type": "text"
								},
								{
									"key": "SEND_EMAIL",
									"value": "true",
									"description": "Email gönderilsin mi? true evet demektedir",
									"type": "text"
								},
								{
									"key": "CLIENT_REFERENCE_CODE",
									"value": "2341453",
									"description": "müşteri referans numaranız",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "$sx . \"|\" . $full_name . \"|\" . $email . \"|\" . $gsm . \"|\" . $amount . \"|\" . $link_expiration_time . \"|\" . $merchantSecretKey;",
									"type": "text"
								},
								{
									"key": "INSTALLMENT",
									"value": "3",
									"description": "Maksimum taksit sayısı",
									"type": "text"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/pay-by-link-create",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"pay-by-link-create"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Düzenli Ödeme",
			"item": [
				{
					"name": "Talimat Oluşturma",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"let body = JSON.parse(pm.request.body.toJSON().raw);",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"",
									"console.log(body);",
									"",
									"const hashString = [",
									"    pm.collectionVariables.get(\"sx\"),",
									"    body.Gsm,",
									"    body.Amount,",
									"    body.ClientRefCode,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"sx\": \"{{sx}}\",\r\n    \"language\": null,\r\n    \"Instalment\": 2,\r\n    \"InstalmentPeriod\": 30,\r\n    \"CustomerName\": \"Bilge\",\r\n    \"CustomerMiddleName\":\"\",\r\n    \"CustomerSurname\": \"Demir\",\r\n    \"ClientRefCode\": \"APITEST001\",\r\n    \"PaymentStartChose\": 1,\r\n    \"PaymentStartDate\": \"18/11/2024\",\r\n    \"Email\": \"bilge.demir123@gmail.com\",\r\n    \"Gsm\": \"5555555555\",\r\n    \"Amount\": \"10\",\r\n    \"Description\": \"Create API test\",\r\n    \"hashDatav2\": \"{{hashDatav2}}\",\r\n    \"cardHolderIP\": \"\"\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/api/RecurringPaymentCreate",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"api",
								"RecurringPaymentCreate"
							]
						}
					},
					"response": []
				},
				{
					"name": "Talimat İptal",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"let body = JSON.parse(pm.request.body.toJSON().raw);",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"",
									"",
									"const hashString = [",
									"    pm.collectionVariables.get(\"sx\"),",
									"    body.InstructionNumber,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"sx\": \"{{sx}}\",\r\n    \"InstructionNumber\": \"ACPL00395012\",\r\n    \"hashDatav2\": \"{{hashDatav2}}\"\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/api/RecurringPaymentCancel",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"api",
								"RecurringPaymentCancel"
							]
						}
					},
					"response": []
				},
				{
					"name": "Talimat Listeleme",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"sx\": \"{{sx-list}}\",\r\n    \"startDate\": \"\",         //DD.MM.YYY\r\n    \"endDate\": \"\",           //DD.MM.YYY\r\n    \"nameSurname\": \"\",        //opsiyonel\r\n    \"gsm\": \"\",                //opsiyonel\r\n    \"instructionNumber\": \"\"   //opsiyonel - listeleme cevabındaki INSTRUCTION_ID ile aynı değer\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/api/RecurringPaymentList",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"api",
								"RecurringPaymentList"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Kart Saklama",
			"item": [
				{
					"name": "Ödeme Alırken Kartı Kayıt Et",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const clientRefCode = pm.request.body.formdata.get(\"clientRefCode\");",
									"const amount = pm.request.body.formdata.get(\"amount\");",
									"const successUrl = pm.request.body.formdata.get(\"successUrl\");",
									"const failUrl = pm.request.body.formdata.get(\"failUrl\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"const rnd = pm.request.body.formdata.get(\"rnd\")",
									"const customerKey = pm.request.body.formdata.get(\"csCustomerKey\");",
									"const hashString = [",
									"    sx,",
									"    clientRefCode,",
									"    amount,",
									"    successUrl,",
									"    failUrl,",
									"    rnd,",
									"    customerKey,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "Size verilen sx değeriniz.",
									"type": "text"
								},
								{
									"key": "clientRefCode",
									"value": "789456|AB76",
									"description": "Kendi referans numaranız",
									"type": "text"
								},
								{
									"key": "successUrl",
									"value": "https://paynkolay.com.tr/test/success",
									"description": "3D Secure işlem sonucunu ise bu adrese post ediyoruz.",
									"type": "text"
								},
								{
									"key": "failUrl",
									"value": "https://paynkolay.com.tr/test/fail",
									"description": "3D Secure işlem başarısız ise bu adrese sonucunu post ediyoruz.",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "6.00",
									"description": "Decimal. ( Kuruş ayracı olarak nokta kullanılmalıdır. )",
									"type": "text"
								},
								{
									"key": "installmentNo",
									"value": "2",
									"description": "Taksit sayısıdır.",
									"type": "text"
								},
								{
									"key": "cardHolderName",
									"value": "Tuna Çınar",
									"description": "Kart üzerindeki isim",
									"type": "text"
								},
								{
									"key": "month",
									"value": "12",
									"description": "Kredi kartı üzerindeki geçerlilik tarihi Ay bilgisidir.",
									"type": "text"
								},
								{
									"key": "year",
									"value": "2026",
									"description": "Kredi kartı üzerindeki geçerlilik tarihi Yıl bilgisidir.",
									"type": "text"
								},
								{
									"key": "cvv",
									"value": "001",
									"description": "Kredi kartının arkasındaki CVV numarasıdır.",
									"type": "text"
								},
								{
									"key": "cardNumber",
									"value": "4546711234567894",
									"description": "Kredi kartı numarasıdır.",
									"type": "text"
								},
								{
									"key": "use3D",
									"value": "true",
									"description": "\"true\" ya da boş gönderilmelidir. İşlemin 3D secure yapılmasını sağlar, kart saklayabilmek için 3D parametresi true olmalıdır.",
									"type": "text"
								},
								{
									"key": "transactionType",
									"value": "SALES",
									"description": "\"SALES\" olmalıdır.",
									"type": "text"
								},
								{
									"key": "rnd",
									"value": "09-10-2025 15:24:22",
									"description": "DateTime.Now fonksiyonu ile işlem tarihini bize göndermeniz gerekmektedir. Örn:09-08-2022 15:24:22",
									"type": "default"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "https://paynkolay.com.tr/entegrasyon/04-hash-request.php sayfamızda açıklanmıştır.\n$sx . \"|\" . $clientRefCode . \"|\" . $amount . \"|\" . $successUrl . \"|\" . $failUrl . \"|\" . $rnd . \"|\" . $customerKey . \"|\" . $merchantSecretKey",
									"type": "default"
								},
								{
									"key": "environment",
									"value": "API",
									"description": "\"API\" girilmelidir.",
									"type": "default"
								},
								{
									"key": "currencyNumber",
									"value": "949",
									"description": "TL için 949 girilmelidir.",
									"type": "default"
								},
								{
									"key": "csCustomerKey",
									"value": "05553900000",
									"description": "Kart saklamak için customerKey olarak TC kimlik no, Cep telefon numarası, Passaport numarası kullanılabilir. İşlem 3D secure olmalıdır.",
									"type": "text"
								},
								{
									"key": "csAutoSave",
									"value": "true",
									"description": "true gönderilirse ve üye işyerinin kart saklama yetkisi varsa, kart kayıt edilir.",
									"type": "text"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								},
								{
									"key": "description",
									"value": "Açıklama girebilirsiniz",
									"description": "İşleme ait açıklama alanı",
									"type": "text",
									"disabled": true
								},
								{
									"key": "namesurname",
									"value": "Tuna Atlas",
									"description": "isim soyisim",
									"type": "text",
									"disabled": true
								},
								{
									"key": "tckn",
									"value": "31825408926",
									"description": "tc kimlik no",
									"type": "text",
									"disabled": true
								},
								{
									"key": "phone",
									"value": "5553900000",
									"description": "telefon bilgisi",
									"type": "text",
									"disabled": true
								},
								{
									"key": "email",
									"value": "tuna.atlas@mail.com",
									"description": "mail adresi",
									"type": "text",
									"disabled": true
								},
								{
									"key": "adress",
									"value": "Adres bilgisi",
									"type": "text",
									"disabled": true
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/Payment",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"v1",
								"Payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Kart Kayıt Et",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const cardNumber = pm.request.body.formdata.get(\"cardNumber\");",
									"const cvv = pm.request.body.formdata.get(\"cvv\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									" ",
									"const hashString = [",
									"    sx,",
									"    cardNumber,",
									"    cvv,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "Size verilen sx değeriniz",
									"type": "text"
								},
								{
									"key": "customerKey",
									"value": "05349893742",
									"description": "Müşteri TCKN / Cep No / Pasaport No",
									"type": "text"
								},
								{
									"key": "cardNumber",
									"value": "4546711234567894",
									"description": "Kart Numarası",
									"type": "default"
								},
								{
									"key": "customerName",
									"value": "Tuna Atlas",
									"description": "Müşteri Ad Soyad",
									"type": "default"
								},
								{
									"key": "customerAliance",
									"value": "Ziraat Test Kartı",
									"description": "Kart Takma Ad",
									"type": "default"
								},
								{
									"key": "expirateMonth",
									"value": "12",
									"description": "Son Kullanma Tarihi Ay",
									"type": "default"
								},
								{
									"key": "expirationYear",
									"value": "2026",
									"description": "Son Kullanma Tarihi Yıl",
									"type": "default"
								},
								{
									"key": "cvv",
									"value": "000",
									"description": "cvv",
									"type": "default"
								},
								{
									"key": "referanceCode",
									"value": "IKSIRPF447962",
									"description": "Aynı gün yapılan bir işlemin IKSIR numarası olmalı. Kredi kartı çekim Referance Kod degeri bu degere göre çekim işlemi kontrol edilerek işleme devam edilmesine izin verilmektedir.",
									"type": "default"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+’|’+cardNumber+’|’+ cvv+’|’+  MerchantSecretKey",
									"type": "default"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								},
								{
									"key": "isEnch",
									"value": "",
									"description": "Sadece kart verileri encrpted gönderilmesi durumunda true set edilmelidir.",
									"type": "default",
									"disabled": true
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/CardStorageCardRegister",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"CardStorageCardRegister"
							]
						}
					},
					"response": []
				},
				{
					"name": "Kayıtlı Kartları Listele",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const customerKey = pm.request.body.formdata.get(\"customerKey\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									" ",
									"const hashString = [",
									"    sx,",
									"    customerKey,",
									"    merchantSecretKey,",
									"].join(\"|\");",
									"",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "sx değeriniz",
									"type": "text"
								},
								{
									"key": "customerKey",
									"value": "05349893742",
									"description": "Müşteri TCKN / Cep No / Pasaport No",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+'|'+customerKey+'|'+merchantSecretKey",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/CardStorageCardList",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"CardStorageCardList"
							]
						}
					},
					"response": []
				},
				{
					"name": "Saklı Kart ile Ödeme Al",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const clientRefCode = pm.request.body.formdata.get(\"clientRefCode\");",
									"const amount = pm.request.body.formdata.get(\"amount\");",
									"const successUrl = pm.request.body.formdata.get(\"successUrl\");",
									"const failUrl = pm.request.body.formdata.get(\"failUrl\");",
									"const rnd = pm.request.body.formdata.get(\"rnd\");",
									"const csCustomerKey = pm.request.body.formdata.get(\"csCustomerKey\")",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"",
									"const hashString = [",
									"    sx,",
									"    clientRefCode,",
									"    amount,",
									"    successUrl,",
									"    failUrl,",
									"    rnd,",
									"    csCustomerKey,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "sx değeriniz",
									"type": "text"
								},
								{
									"key": "clientRefCode",
									"value": "123456",
									"description": "kendi referans numaranız",
									"type": "text"
								},
								{
									"key": "successUrl",
									"value": "https://paynkolay.com.tr/test/success",
									"description": "3D Secure işlem sonucunu bu adrese gönderiyoruz.",
									"type": "text"
								},
								{
									"key": "failUrl",
									"value": "https://paynkolay.com.tr/test/fail",
									"description": "3D Secure işlem başarısız ise sonucunu bu adrese gönderiyoruz.",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "10.00",
									"description": "tutar",
									"type": "text"
								},
								{
									"key": "installmentNo",
									"value": "2",
									"description": "taksit sayısı",
									"type": "text"
								},
								{
									"key": "use3D",
									"value": "false",
									"description": "3D kullanımı",
									"type": "text"
								},
								{
									"key": "transactionType",
									"value": "SALES",
									"description": "SALES ya da PRESALES ",
									"type": "text"
								},
								{
									"key": "rnd",
									"value": "01.01.2026 16:32",
									"description": "tarih",
									"type": "default"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+’|’+clientRefCode+’|’+amount +’|’+successUrl +’|’+failUrl +’|’+rnd +’|’+csCustomerKey+’|’+MerchantSecretKey",
									"type": "default"
								},
								{
									"key": "environment",
									"value": "API",
									"description": "API",
									"type": "default"
								},
								{
									"key": "currencyNumber",
									"value": "949",
									"description": "Default TL'dir. TL currencyNumber 949'dur. ",
									"type": "default"
								},
								{
									"key": "csCustomerKey",
									"value": "05553901565",
									"description": "Kart Saklama Müşteri TCKN / Cep No / Pasaport No",
									"type": "default"
								},
								{
									"key": "csTranId",
									"value": "yes19419",
									"description": "Saklı Kart TranId Degeri ya da token değeri ile çekim yapabiliyoruz, biri dolu olsa yeterli",
									"type": "default"
								},
								{
									"key": "csToken",
									"value": "",
									"description": "Saklı Kart Token Degeri ya da tranid ile biri dolu olsa yeterli",
									"type": "default"
								},
								{
									"key": "csAutoSave",
									"value": "",
									"description": "Payment sonrası kart bilgileri saklansın mı true/false",
									"type": "default"
								},
								{
									"key": "csCardAlias",
									"value": "Ziraat Test Kartı",
									"description": "Saklı kart alias bilgisi kart saklama yapılacak ise bu deger gönderilmelidir.",
									"type": "default"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								},
								{
									"key": "bankCode",
									"value": "111",
									"type": "text",
									"disabled": true
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/Payment",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"v1",
								"Payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Kayıtlı Kartı Sil",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const customerKey = pm.request.body.formdata.get(\"customerKey\");",
									"const token = pm.request.body.formdata.get(\"token\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									" ",
									"const hashString = [",
									"    sx,",
									"    customerKey,",
									"    token,",
									"    merchantSecretKey,",
									"].join(\"|\");",
									" ",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "sx değeriniz",
									"type": "text"
								},
								{
									"key": "customerKey",
									"value": "05349893742",
									"description": "Müşteri TCKN / Cep No / Pasaport No",
									"type": "text"
								},
								{
									"key": "token",
									"value": "yes9BMcYBOebxYHpzd7Sni+6OcdUSlTyzy6Z+qajmWaMIqFtX+kS/Q/lNL36d8h2LmQW7/1Sq96j4jbibOqf4LbeIDVq0e0cIZMqzfMuiL7BmnUP4vXH6q5xZC+wLz7PxgOk5ZA9tgBE/a4TWd0xdEHCsrmhI4LBmqOAu8iZYYXbGUqH767ba21i+n606k2LQE7toXRotzGn9Qiws2cE5a27+DhsM/4sWId9+DPtqyrbkOP2YvbyRVAtP9kd9DIFDLL",
									"description": "token ile kartı silebilirsiniz.",
									"type": "default"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+'|'+customerKey+'|'+token+'|'+merchantSecretKey",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/CardStorageCardDelete",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"CardStorageCardDelete"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Önprovizyon",
			"item": [
				{
					"name": "Ödeme",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const clientRefCode = pm.request.body.formdata.get(\"clientRefCode\");",
									"const amount = pm.request.body.formdata.get(\"amount\");",
									"const successUrl = pm.request.body.formdata.get(\"successUrl\");",
									"const failUrl = pm.request.body.formdata.get(\"failUrl\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"const rnd = pm.request.body.formdata.get(\"rnd\")",
									"const customerKey = \"\"",
									"const hashString = [",
									"    sx,",
									"    clientRefCode,",
									"    amount,",
									"    successUrl,",
									"    failUrl,",
									"    rnd,",
									"    customerKey,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "Size verilen sx değeriniz.",
									"type": "text"
								},
								{
									"key": "clientRefCode",
									"value": "Order-3209",
									"description": "Kendi referans numaranız",
									"type": "text"
								},
								{
									"key": "successUrl",
									"value": "https://paynkolay.com.tr/test/success",
									"description": "3D Secure işlem başarılı ise bu adrese sonucunu post ediyoruz.",
									"type": "text"
								},
								{
									"key": "failUrl",
									"value": "https://paynkolay.com.tr/test/fail",
									"description": "3D Secure işlem başarısız ise bu adrese sonucunu post ediyoruz.",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "1134.10",
									"description": "Decimal. ( Kuruş ayracı olarak nokta kullanılmalıdır. )",
									"type": "text"
								},
								{
									"key": "installmentNo",
									"value": "2",
									"description": "Taksit sayısıdır.",
									"type": "text"
								},
								{
									"key": "cardHolderName",
									"value": "ibrahim baran",
									"description": "Kart üzerindeki isim",
									"type": "text"
								},
								{
									"key": "month",
									"value": "12",
									"description": "Kredi kartı üzerindeki geçerlilik tarihi Ay bilgisidir.",
									"type": "text"
								},
								{
									"key": "year",
									"value": "2026",
									"description": "Kredi kartı üzerindeki geçerlilik tarihi Yıl bilgisidir.",
									"type": "text"
								},
								{
									"key": "cvv",
									"value": "000",
									"description": "Kredi kartının arkasındaki CVV numarasıdır.",
									"type": "text"
								},
								{
									"key": "cardNumber",
									"value": "4546711234567894",
									"description": "Kredi kartı numarasıdır.",
									"type": "text"
								},
								{
									"key": "use3D",
									"value": "false",
									"description": "\"true\" ya da boş gönderilmelidir. İşlemin 3D secure yapılmasını sağlar",
									"type": "text"
								},
								{
									"key": "transactionType",
									"value": "PRESALES",
									"description": "\"SALES\" olmalıdır.",
									"type": "text"
								},
								{
									"key": "rnd",
									"value": "23-08-2025 12:16:19",
									"description": "DateTime.Now fonksiyonu ile işlem tarihini bize göndermeniz gerekmektedir. Örn:09-08-2022 15:24:22",
									"type": "default"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "https://paynkolay.com.tr/entegrasyon/04-hash-request.php",
									"type": "default"
								},
								{
									"key": "environment",
									"value": "API",
									"description": "\"API\" girilmelidir.",
									"type": "default"
								},
								{
									"key": "currencyNumber",
									"value": "949",
									"description": "TL için 949 girilmelidir.",
									"type": "default"
								},
								{
									"key": "description",
									"value": "Açıklama girebilirsiniz",
									"description": "İşleme ait açıklama alanı",
									"type": "text"
								},
								{
									"key": "namesurname",
									"value": "Tuna Atlas",
									"description": "isim soyisim",
									"type": "text"
								},
								{
									"key": "tckn",
									"value": "31825408926",
									"description": "tc kimlik no",
									"type": "text"
								},
								{
									"key": "phone",
									"value": "5553900000",
									"description": "telefon bilgisi",
									"type": "text"
								},
								{
									"key": "email",
									"value": "tuna.atlas@mail.com",
									"description": "mail adresi",
									"type": "text"
								},
								{
									"key": "adress",
									"value": "Adres bilgisi",
									"type": "text"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								},
								{
									"key": "csCustomerKey",
									"value": "",
									"description": "Kart saklamak için customerKey olarak TC kimlik no, Cep telefon numarası, Passaport numarası kullanılabilir. İşlem 3D secure olmalıdır.",
									"type": "text",
									"disabled": true
								},
								{
									"key": "csAutoSave",
									"value": "false",
									"description": "true gönderilirse ve üye işyerinin kart saklama yetkisi varsa, kart kayıt edilir.",
									"type": "text",
									"disabled": true
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/v1/Payment",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"v1",
								"Payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Onaylama",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const trxDate = pm.request.body.formdata.get(\"trxDate\");",
									"const amount = pm.request.body.formdata.get(\"amount\");",
									"const referenceCode = pm.request.body.formdata.get(\"referenceCode\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"",
									"const hashString = [",
									"    sx,",
									"    trxDate,",
									"    amount,",
									"    referenceCode,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "sx değeriniz",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "1134.10",
									"description": "tutar",
									"type": "text"
								},
								{
									"key": "referenceCode",
									"value": "IKSIRPF444992",
									"description": "İşlem Referans Numarası",
									"type": "default"
								},
								{
									"key": "trxDate",
									"value": "2025-08-27",
									"description": "İşlem Tarihi yyyy-MM-dd",
									"type": "default"
								},
								{
									"key": "transactionType",
									"value": "SALE",
									"description": "sale : çekim işlemi , cancel: iptal işlemi",
									"type": "default"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+’|’+trxDate+’|’+ amount+’|’+ referenceCode+’|’+MerchantSecretKey",
									"type": "text"
								},
								{
									"key": "cardHolderIP",
									"value": "",
									"description": "Müşterinizin internete çıkış IP adresi (IPv4 veya IPv6)",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/PreAuthorizationAprove",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"PreAuthorizationAprove"
							]
						}
					},
					"response": []
				},
				{
					"name": "Listeleme",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx-list\");",
									"const startDate = pm.request.body.formdata.get(\"startDate\");",
									"const endDate = pm.request.body.formdata.get(\"endDate\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"const hashString = [",
									"    sx,",
									"    endDate,",
									"    startDate,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx-list}}",
									"description": "sx değeriniz",
									"type": "text"
								},
								{
									"key": "startDate",
									"value": "2025-08-27",
									"description": "Başlagıç tarihi \"YYYY-MM-DD\"",
									"type": "text"
								},
								{
									"key": "endDate",
									"value": "2025-08-27",
									"description": "Bitiş tarihi başlangıç ve bitiş tarih aralığı max 30 gün olabilir \"YYYY-MM-DD\"",
									"type": "text"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+’|’+endDate+’|’+ startDate+’|’+  MerchantSecretKey",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/PreAuthorizationList",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"PreAuthorizationList"
							]
						}
					},
					"response": []
				},
				{
					"name": "İptal",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"const sx = pm.collectionVariables.get(\"sx\");",
									"const trxDate = pm.request.body.formdata.get(\"trxDate\");",
									"const amount = pm.request.body.formdata.get(\"amount\");",
									"const referenceCode = pm.request.body.formdata.get(\"referenceCode\");",
									"const transactionType = pm.request.body.formdata.get(\"transactionType\");",
									"const merchantSecretKey = pm.collectionVariables.get(\"merchantSecretKey\");",
									"",
									"const hashString = [",
									"    sx,",
									"    trxDate,",
									"    amount,",
									"    referenceCode,",
									"    transactionType,",
									"    merchantSecretKey",
									"].join(\"|\");",
									"",
									"console.log(\"String to be hashed:\", hashString);",
									"const hashedBytes = CryptoJS.SHA512(hashString);",
									"const hashDatav2 = hashedBytes.toString(CryptoJS.enc.Base64);",
									"console.log(\"Generated hashDatav2:\", hashDatav2);",
									"pm.variables.set(\"hashDatav2\", hashDatav2);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"user-agent": true
						}
					},
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "sx",
									"value": "{{sx}}",
									"description": "sx değeriniz",
									"type": "text"
								},
								{
									"key": "amount",
									"value": "1134.10",
									"description": "tutar",
									"type": "text"
								},
								{
									"key": "referenceCode",
									"value": "IKSIRPF444992",
									"description": "İşlem Referans Numarası",
									"type": "default"
								},
								{
									"key": "trxDate",
									"value": "2025-08-27",
									"description": "İşlem Tarihi yyyy-MM-dd",
									"type": "default"
								},
								{
									"key": "transactionType",
									"value": "cancel",
									"description": "sale : çekim işlemi , cancel: iptal işlemi",
									"type": "default"
								},
								{
									"key": "hashDatav2",
									"value": "{{hashDatav2}}",
									"description": "sx+’|’+trxDate+’|’+ amount+’|’+ referenceCode+’|’+transactionType+'|'+MerchantSecretKey",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://paynkolaytest.nkolayislem.com.tr/Vpos/Payment/PreAuthorizationCancel",
							"protocol": "https",
							"host": [
								"paynkolaytest",
								"nkolayislem",
								"com",
								"tr"
							],
							"path": [
								"Vpos",
								"Payment",
								"PreAuthorizationCancel"
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					"pm.collectionVariables.set(\"sx\", \"118591467|bScbGDYCtPf7SS1N6PQ6/+58rFhW1WpsWINqvkJFaJlu6bMH2tgPKDQtjeA5vClpzJP24uA0vx7OX53cP3SgUspa4EvYix+1C3aXe++8glUvu9Oyyj3v300p5NP7ro/9K57Zcw==\");",
					"",
					"pm.collectionVariables.set(\"sx-list\", \"118591467|bScbGDYCtPf7SS1N6PQ6/+58rFhW1WpsWINqvkJFaJlu6bMH2tgPKDQtjeA5vClpzJP24uA0vx7OX53cP3SgUspa4EvYix+1C3aXe++8glUvu9Oyyj3v300p5NP7ro/9K57Zcw==|3hJpHVF2cqvcCZ4q6F7rcA==\");",
					"",
					"pm.collectionVariables.set(\"sx-cancel\", \"118591467|bScbGDYCtPf7SS1N6PQ6/+58rFhW1WpsWINqvkJFaJlu6bMH2tgPKDQtjeA5vClpzJP24uA0vx7OX53cP3SgUspa4EvYix+1C3aXe++8glUvu9Oyyj3v300p5NP7ro/9K57Zcw==|yDUZaCk6rsoHZJWI3d471A/+TJA7C81X\");",
					"",
					"pm.collectionVariables.set(\"merchantSecretKey\", \"_YckdxUbv4vrnMUZ6VQsr\");",
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "merchantSecretKey",
			"value": ""
		},
		{
			"key": "sx",
			"value": ""
		},
		{
			"key": "sx-list",
			"value": ""
		},
		{
			"key": "sx-cancel",
			"value": ""
		}
	]
}
