Skip to content

abhishek3999/sample-merchant-server-javascript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample merchant server for iOS & android SDK

Banner

A simple & light weight NodeJS server that you can use to test Network International's iOS & Android SDK's.

Install dependencies

Run yarn start to install the dependencies.

Start the server

  • API_KEY=XXX GATEWAY_API_URL=XXX IDENTITY_API_URL=XXX REALM=XXX PORT=3000 yarn start will start the server. Replace XXX with your actual values which you can get from Network International's portal.

  • The sample iOS and Android apps will make a POST request to /api/createOrder for creating an order.

// Sample request body
{
	"amount":{
		"currencyCode":"AED", // Currency code
		"value": 1000 // 10 AED
	},
	"action": "SALE", // AUTH or SALE
	"language": "en",
	"description":"", // Description of your order
	"email": "[email protected]" // Email
}

For more info on integrating the N-Genius api to your server side app, see our order creation guide

For more info on the order creation api, see our api reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%