Coder Social home page Coder Social logo

noqod / payment-gateway-library Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 9.75 MB

NOQOD Payment Gateways Merchant Integration Library

License: GNU General Public License v3.0

JavaScript 84.81% HTML 6.16% EJS 4.22% PHP 3.85% Hack 0.96%
payment express-payment initialise payment-request noqod-user

payment-gateway-library's Introduction

NOQOD Payment Gateway Integration Guide

Introduction

As the rapid growth of the e-commerce sector has been besieging the world especially after the recent global pandemic in 2020, the demanding need of the channels to elevate online payments and the processes is necessary. Since NOQOD has already set forward to revolutionise payment ecosystem in African Countries, the document specifies the online payment integration process that NOQOD will follow up with, in order to give the businesses an another product ready to implement as NOQOD payment gateway.

Purpose of the document

The document is meant to specify the online payment integration process that you can follow for your business so that any customer can make their payments on your software through NOQOD Payment gateway.

How the process works?

The process will follow like any other online payment option that starts from initialising transaction from a merchant window, redirecting to the NOQOD payment gateway and then back with success or failure

Methods Supported

There are two methods availed through NOQOD payment gateway:

  1. Express payment (If the user is non-NOQOD user)
  2. Pay via NOQOD (If the user is NOQOD user)

1. Pay using Express method

*The method is meant for the general audience that does not fall in the category of NOQOD users.

*This is simply a guest payment type where any random user can make use of NOOQD payment platform while entering his payment details like card number and expiry date

*This type will act as the third party payment type for the payers where they can simply use the platform that shall be integrated with the NOQOD API

2. Pay using NOQOD

*The method is meant for the NOQOD users

*The process of accepting payments online through this method will go through the verification of the users (being NOQOD users)

*The process will have two cases, one if the payment is being done from the same device and the other if it is done from another

  1. If payment is being made from different device, a dynamic QR will be generated for the user. The NOQOD user will scan this QR from NOQOD app and pay after choosing the card and entering the IPIN (as password). The user will be then navigated back to the original website.
  2. If payment is being made from same device, the user will be availed to enter mobile number registered with NOQOD and do the payment with OTP verification

Index guide for Integration

image 1

How to integrate?

As a business, you need to follow these steps for the integration process

1. Import

Import a front-end library. This will contain a function called npg function.

<script src="https://cdn.jsdelivr.net/gh/NOQOD/[email protected]/index.js </script>

This npg function will expect three params which being token, merchant id and an environment which might be either “sandbox” or “live” where sandbox points to staging and live points to the production environement

Token Generation :

An identifier as described above will be generated with the following steps:

a. Visit the url https://npg.noqod.com.sd and sign in using your registered mobile number (Merchant Id) and password.

b. Choose the sandbox or live mode to proceed.

c. Navigate to Integration page in the portal.

d. Enter your server IP to whitelist it and generate your token in any of the mode selected.

2. Initialise params

The library contains the code that will first initialise token and merchant Id

let noqod = npg( "7006911868", myToken, “sandbox” ); or let noqod = npg( "7006911868", myToken, “live” );

3. Create signature

After initialising the params, create a hash (signature) for the details:

  1. Merchant id
  2. Amount
  3. Order Id

let signature = noqod.hashInfo( "7006911868", "550", "19012138137211" );

4. Send Payment request

Once the signature is created, payment request can be sent securely now. This request will contain following params:

  1.  Amount         2.	   Order Id         3.	   CallbackUrl          4.	   Generated hash(signature)
    

noqod.sendRequest( "550", "19012138137211", "https://www.examplesite.com", signature);

5. NOQOD Payment gateway checkout

Once the request is sent, NOQOD Payment gateway will verify the hash and navigate the end user to checkout with the available payment methods of express payment or pay via NOQOD option as mentioned above. To follow with this process, API’s will hit on our backend to process the payment

6. Navigate Back

After the completion of payment process, user will be navigated back with params:

  1. Order Id
  2. Transaction Id
  3. Signature
  4. Order
  5. Amount

Group 107

7. Recommended verification

Once the above steps are followed, it is recommened for you as merchant to verify the signature on your end using noqod.hashInfo function

payment-gateway-library's People

Contributors

cdabid avatar ehsann95 avatar iqra18 avatar ris-shamoa avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.