{
	"info": {
		"_postman_id": "a3d84148-d99c-40de-af0a-36a674a64e1d",
		"name": "Mpatise - 2",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "23121046",
		"_collection_link": "https://red-crater-496493.postman.co/workspace/UAT~7eddb1e4-dff5-4551-a9fd-d89fa7bf348c/collection/23121046-a3d84148-d99c-40de-af0a-36a674a64e1d?action=share&source=collection_link&creator=23121046"
	},
	"item": [
		{
			"name": "Online Purchase",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"redirectSuccessUrl\": \"https://tj-dev.stoplight.io/\",\n    \"redirectFailedUrl\": \"https://tj-dev.stoplight.io/\",\n    \"redirectCancelUrl\": \"https://jwt.io/\",\n    \"paymentMethod\": \"CARD\",\n    \"transaction\": {\n        //\"paymentIntentId\": \"{{paymentIntentID}}\",\n        \"amount\": 1.00,\n        \"currency\": \"BWP\",\n     \"merchantId\":\"f80089e8-382a-4c99-ad5e-a52ed2a3a510\",\n     \"profileId\": \"8a672f30-981d-4c95-aa45-25eb88bd69a2\",\n        \"merchantRef\": \"{{merchantRef}}\"\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://uat-pg-api.transactionjunction.com/uat/ipgw/gateway/v1/sessions",
					"protocol": "https",
					"host": [
						"uat-pg-api",
						"transactionjunction",
						"com"
					],
					"path": [
						"uat",
						"ipgw",
						"gateway",
						"v1",
						"sessions"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST - Settle",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n     \"merchantId\":\"f80089e8-382a-4c99-ad5e-a52ed2a3a510\",\n     \"profileId\": \"8a672f30-981d-4c95-aa45-25eb88bd69a2\",\n   \"transactionId\": \"{{transactionId}}\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://uat-pg-api.transactionjunction.com/uat/ipgw/cnp/v1/online/settle",
					"protocol": "https",
					"host": [
						"uat-pg-api",
						"transactionjunction",
						"com"
					],
					"path": [
						"uat",
						"ipgw",
						"cnp",
						"v1",
						"online",
						"settle"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST - Refund",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n     \"merchantId\":\"f80089e8-382a-4c99-ad5e-a52ed2a3a510\",\n     \"profileId\": \"8a672f30-981d-4c95-aa45-25eb88bd69a2\",\n   \"transactionId\": \" \",\n   \"merchantRef\": \"Mpatise Refund\",\n   \"amount\": 1.10\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://uat-pg-api.transactionjunction.com/uat/ipgw/cnp/v1/online/refund",
					"protocol": "https",
					"host": [
						"uat-pg-api",
						"transactionjunction",
						"com"
					],
					"path": [
						"uat",
						"ipgw",
						"cnp",
						"v1",
						"online",
						"refund"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": [
			{
				"key": "clientSecret",
				"value": "th9pc0u3qblv4kr5ba4kghs9b4ni9132gqk73e93nou33n7arfa",
				"type": "string"
			},
			{
				"key": "clientId",
				"value": "24vsbt45mhhfmghu1bl82slm4c",
				"type": "string"
			},
			{
				"key": "accessTokenUrl",
				"value": "https://uat-ipgw-oauth.auth.eu-west-1.amazoncognito.com/oauth2/token",
				"type": "string"
			},
			{
				"key": "tokenName",
				"value": "FNB Botswana",
				"type": "string"
			},
			{
				"key": "grant_type",
				"value": "client_credentials",
				"type": "string"
			},
			{
				"key": "addTokenTo",
				"value": "header",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	]
}