0% found this document useful (0 votes)
365 views6 pages

N-Genius Live Configuration

This document provides instructions for merchants to configure their integration with N-Genius for live transactions. It details how to generate an access token using two different APIs. It also explains how to create orders and retrieve order statuses on the live environment by updating the URLs to call the live APIs instead of the sandbox APIs. Finally, it notes that merchants may need to make configuration changes in their c-panel if using plugins with popular e-commerce platforms like WooCommerce, Magento, and Prestashop.

Uploaded by

Eymen Aslan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
365 views6 pages

N-Genius Live Configuration

This document provides instructions for merchants to configure their integration with N-Genius for live transactions. It details how to generate an access token using two different APIs. It also explains how to create orders and retrieve order statuses on the live environment by updating the URLs to call the live APIs instead of the sandbox APIs. Finally, it notes that merchants may need to make configuration changes in their c-panel if using plugins with popular e-commerce platforms like WooCommerce, Magento, and Prestashop.

Uploaded by

Eymen Aslan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

N-GENIUS LIVE CONFIGURATION

REV. 1

Rev Date Page


1 21/7/2020 1 of 6
Table of Contents
Introduction................................................................................................................................................3
Generating an access token........................................................................................................................3
First Method...........................................................................................................................................3
Second Method.......................................................................................................................................3
Create an order...........................................................................................................................................4
Retrieving order Status...............................................................................................................................4
Plugins.........................................................................................................................................................4
Woo-commerce......................................................................................................................................5
Magento 1.9............................................................................................................................................5
Magento 2...............................................................................................................................................6
Prestashop 1.7........................................................................................................................................6

Introduction

Rev Date Page


1 21/7/2020 2 of 6
Merchants are provided with Sandbox [UAT] credentials first, to get introduced to N-
Genius platform and perform test transactions to make sure that their integration model is
working as expected. Post testing phase, live credentials will be shared with Merchants to
preform real transactions. On the live environment, merchant developers has to configure
Live credentials in order to initiate live transactions. Below are the details

Generating an access token

There are two APIs available for generating an access token in N-Genius. You can make
use of either of them. Details are below.

First Method
 Sandbox URL: https://api-gateway.sandbox.ngenius-payments.com/identity/auth/access-
token
 Live URL : https://api-gateway.ngenius-payments.com/identity/auth/access-token
 Method: POST
 Headers:
o Authorization – Basic {{YOUR API KEY}}
o Content-Type – application/vnd.ni-identity.v1+json
 Body:
o No body required.
Second Method
 Sandbox URL: https://identity.sandbox.ngenius-
payments.com/auth/realms/ni/protocol/openid-connect/token
 LIVE URL : https://identity.ngenius-
payments.com/auth/realms/NetworkInternational/protocol/openid-connect/token
 Method: POST
 Headers:
o Authorization – Basic {{YOUR API KEY}}
o Content-Type – application/x-www-form-urlencoded
 Body:
o “grant_type” => “client_credentials”

Create an order

Rev Date Page


1 21/7/2020 3 of 6
Below are the changes required to create an order on live region.
 Sandbox URL: https://api-gateway.sandbox.ngenius-payments.com/transactions/outlets/
[outletRef]/orders
 LIVE URL :
https://api-gateway.ngenius-payments.com/transactions/outlets/[outletRef]/orders
 Method: POST
 Headers:
o Authorization – Bearer {{access_token}}
o Content-Type – application/vnd.ni-payment.v2+json
 Body:
o As used in sandbox.

Retrieving order Status

Below are the changes required to retrieve an order on live region.


 Sandbox URL: https://api-gateway.sandbox.ngenius-
payments.com/transactions/outlets/[outletRef]/orders/[orderRef]
 LIVE URL :
https://api-gateway.ngenius-payments.com/transactions/outlets/[outletRef]/orders/[orderRef]
 METHOD: GET
 Headers:
o Authorization – Bearer {{access_token}}
 No Body required.

Plugins

Merchants needs to do configuration changes on the C-panel, if plugins are used. Below
are the changes to be applied across different plugins.

Woo-commerce

Rev Date Page


1 21/7/2020 4 of 6
Magento 1.9

Magento 2

Rev Date Page


1 21/7/2020 5 of 6
Prestashop 1.7

Rev Date Page


1 21/7/2020 6 of 6

You might also like