Setting up POSTman environment

This document will provide some guidance and a default environment which can be used by Integrators to test Ezypay's API based on the different scenario

1. Install POSTman on your chrome browser

Open your chrome browser and go to chrome web store to install the POSTman application:
Download POSTman in chrome.

2. Add your environment in POSTman

341

After clicking the POSTman icon to launch POSTman, click on the "Import" tab where a huge option page will be presented. Drag the previously downloaded sandbox environment.

{
	"id": "a6310458-61ff-40b5-bfa6-d9f0e584488a",
	"name": "Collection Sandbox Environment",
	"values": [
		{
			"key": "identity",
			"value": "https://identity-sandbox.ezypay.com/",
			"enabled": true
		},
		{
			"key": "env",
			"value": "https://api-sandbox.ezypay.com",
			"enabled": true
		},
		{
			"key": "username",
			"value": "{{Username}}",
			"enabled": true
		},
		{
			"key": "password",
			"value": "{{Password}}",
			"enabled": true
		},
		{
			"key": "client_id",
			"value": "{{Client_Id}}",
			"enabled": true
		},
		{
			"key": "client_secret",
			"value": "{{Client_Secret}}",
			"enabled": true
		},
		{
			"key": "Merchant",
			"value": "{{MerchantId}}",
			"enabled": true
		},
		{
			"key": "Authorization",
			"value": "{{AuthenticationToken}}",
			"enabled": true
		},
		{
			"key": "scope",
			"value": "integrator billing_profile create_payment_method offline_access",
			"enabled": true
		}
	],
	"_postman_variable_scope": "environment",
	"_postman_exported_at": "2020-12-24T09:26:39.239Z",
	"_postman_exported_using": "Postman/7.36.1"
}

Save the above JSON to a .JSON file and import that into once the import button is clicked.

1044

Just drag the earlier saved .JSON file into the middle of the page.

As soon as the JSON is drag in the middle, integrators will see a confirmation to proceed with the "Import"

1049

Click "import" once the information is confirmed.

Now we can proceed with testing Ezypay API by importing the collection depending on the scenarios the integrator choose to test.

402

Selecting the correct Environment

๐Ÿ‘

NOTE

Always remember to select the correct environment based on the credentials required as show above.