A simple & light weight NodeJS server that you can use to test Network International's iOS & Android SDK's.
Run yarn start
to install the dependencies.
-
API_KEY=XXX GATEWAY_API_URL=XXX IDENTITY_API_URL=XXX REALM=XXX PORT=3000 yarn start
will start the server. ReplaceXXX
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