{
	"info": {
		"_postman_id": "1abbe8d2-ee0b-4539-8ba6-0018b99dc7d8",
		"name": "OpenAPI-Payment",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "34299531"
	},
	"item": [
		{
			"name": "/neuopenapi/pay/transactions/trade",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"var appid = \"__UNI__jlobevw5q0nqc\";\r",
							"var secret = \"hrnat68b3t5cfp3ludi1\";\r",
							"var merchantId = \"\";\r",
							"var description = \"\";\r",
							"var outTradeNo = \"0bb86214-f5f7-4d86-816a-9faa7479ef64\";\r",
							"var timeExpire = \"\";\r",
							"var notifyUrl = \"https://dev-nsuperapp.neuxnet.com/topup/trade/notify\";\r",
							"var amount = \"100\";\r",
							"var currency = \"SAR\";\r",
							"var openId = \"2ace75812f4004a53859f0fbabc1c7a6\";\r",
							"var timestamp = new Date().getTime();\r",
							"\r",
							"var sha256Str = \"amount=\" + amount + \"appid=\" + appid + \"currency=\" + currency + \"description=\" + description + \"merchantId=\" + merchantId + \"notifyUrl=\" + notifyUrl +  \"openId=\" + openId + \"outTradeNo=\" + outTradeNo + \"secret=\" + secret + \"timeExpire=\" + timeExpire + \"timestamp=\" + timestamp;\r",
							"var signature = CryptoJS.SHA256(sha256Str).toString();\r",
							"\r",
							"pm.collectionVariables.set(\"appid\", appid);\r",
							"pm.collectionVariables.set(\"merchantId\", merchantId);\r",
							"pm.collectionVariables.set(\"description\", description);\r",
							"pm.collectionVariables.set(\"outTradeNo\", outTradeNo);\r",
							"pm.collectionVariables.set(\"timeExpire\", timeExpire);\r",
							"pm.collectionVariables.set(\"notifyUrl\", notifyUrl);\r",
							"pm.collectionVariables.set(\"amount\", amount);\r",
							"pm.collectionVariables.set(\"currency\", currency);\r",
							"pm.collectionVariables.set(\"openId\", openId);\r",
							"pm.collectionVariables.set(\"timestamp\", timestamp);\r",
							"pm.collectionVariables.set(\"sign\", signature);\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "appid",
							"value": "{{appid}}",
							"type": "text"
						},
						{
							"key": "merchantId",
							"value": "{{merchantId}}",
							"type": "text"
						},
						{
							"key": "description",
							"value": "{{description}}",
							"type": "text"
						},
						{
							"key": "outTradeNo",
							"value": "{{outTradeNo}}",
							"type": "text"
						},
						{
							"key": "timeExpire",
							"value": "{{timeExpire}}",
							"type": "text"
						},
						{
							"key": "notifyUrl",
							"value": "{{notifyUrl}}",
							"type": "text"
						},
						{
							"key": "amount",
							"value": "{{amount}}",
							"type": "text"
						},
						{
							"key": "currency",
							"value": "{{currency}}",
							"type": "text"
						},
						{
							"key": "openId",
							"value": "{{openId}}",
							"type": "text"
						},
						{
							"key": "timestamp",
							"value": "{{timestamp}}",
							"type": "text"
						},
						{
							"key": "sign",
							"value": "{{sign}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://dev-nsuperapp.neuxnet.com/neuopenapi/pay/transactions/trade",
					"protocol": "https",
					"host": [
						"dev-nsuperapp",
						"neuxnet",
						"com"
					],
					"path": [
						"neuopenapi",
						"pay",
						"transactions",
						"trade"
					]
				}
			},
			"response": []
		},
		{
			"name": "/neuopenapi/pay/transactions/trade Copy",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"var appid = \"__UNI__jlobevw5q0nqc\";\r",
							"var secret = \"hrnat68b3t5cfp3ludi1\";\r",
							"var tradeNo = \"1881c75ae1f047cf9e50d4217219163a\";\r",
							"var timestamp = new Date().getTime();\r",
							"\r",
							"var sha256Str = \"appid=\" + appid + \"secret=\" + secret + \"timestamp=\" + timestamp + \"tradeNo=\" + tradeNo;\r",
							"var signature = CryptoJS.SHA256(sha256Str).toString();\r",
							"\r",
							"pm.collectionVariables.set(\"appid\", appid);\r",
							"pm.collectionVariables.set(\"tradeNo\", tradeNo);\r",
							"pm.collectionVariables.set(\"timestamp\", timestamp);\r",
							"pm.collectionVariables.set(\"sign\", signature);\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "appid",
							"value": "{{appid}}",
							"type": "text"
						},
						{
							"key": "tradeNo",
							"value": "{{tradeNo}}",
							"type": "text"
						},
						{
							"key": "timestamp",
							"value": "{{timestamp}}",
							"type": "text"
						},
						{
							"key": "sign",
							"value": "{{sign}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://dev-nsuperapp.neuxnet.com/neuopenapi/pay/transactions/tradeclose",
					"protocol": "https",
					"host": [
						"dev-nsuperapp",
						"neuxnet",
						"com"
					],
					"path": [
						"neuopenapi",
						"pay",
						"transactions",
						"tradeclose"
					]
				}
			},
			"response": []
		},
		{
			"name": "/neuopenapi/pay/transactions/tradedetail",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"var appid = \"__UNI__jlobevw5q0nqc\";\r",
							"var secret = \"hrnat68b3t5cfp3ludi1\";\r",
							"var tradeNo = \"bbd110e64aae4109b086037d0ac96b11\";\r",
							"var timestamp = new Date().getTime();\r",
							"\r",
							"var sha256Str = \"appid=\" + appid + \"secret=\" + secret + \"timestamp=\" + timestamp + \"tradeNo=\" + tradeNo;\r",
							"var signature = CryptoJS.SHA256(sha256Str).toString();\r",
							"\r",
							"pm.collectionVariables.set(\"appid\", appid);\r",
							"pm.collectionVariables.set(\"tradeNo\", tradeNo);\r",
							"pm.collectionVariables.set(\"timestamp\", timestamp);\r",
							"pm.collectionVariables.set(\"sign\", signature);\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"method": "GET",
				"header": [
					{
						"warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": []
				},
				"url": {
					"raw": "https://dev-nsuperapp.neuxnet.com/neuopenapi/pay/transactions/tradedetail?appid={{appid}}&tradeNo={{tradeNo}}&timestamp={{timestamp}}&sign={{sign}}",
					"protocol": "https",
					"host": [
						"dev-nsuperapp",
						"neuxnet",
						"com"
					],
					"path": [
						"neuopenapi",
						"pay",
						"transactions",
						"tradedetail"
					],
					"query": [
						{
							"key": "appid",
							"value": "{{appid}}"
						},
						{
							"key": "tradeNo",
							"value": "{{tradeNo}}"
						},
						{
							"key": "timestamp",
							"value": "{{timestamp}}"
						},
						{
							"key": "sign",
							"value": "{{sign}}"
						}
					]
				}
			},
			"response": []
		}
	],
	"variable": [
		{
			"key": "appid",
			"value": ""
		},
		{
			"key": "secret",
			"value": ""
		},
		{
			"key": "merchantId",
			"value": ""
		},
		{
			"key": "description",
			"value": ""
		},
		{
			"key": "outTradeNo",
			"value": ""
		},
		{
			"key": "timeExpire",
			"value": ""
		},
		{
			"key": "notifyUrl",
			"value": ""
		},
		{
			"key": "amount",
			"value": ""
		},
		{
			"key": "currency",
			"value": ""
		},
		{
			"key": "openId",
			"value": ""
		},
		{
			"key": "timestamp",
			"value": ""
		},
		{
			"key": "sign",
			"value": ""
		},
		{
			"key": "tradeNo",
			"value": ""
		}
	]
}