Skip to content

harunk-monri/monri-integrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monri Integrations Example Demo

Monri Web integrations Example Demo (Components, Lightbox, Redirect)

image

The Lightbox approach uses an <iframe> to embed the payment page as an overlay to your online shop. When the Lightbox Mode is invoked, the merchants online shop is darkened out and the payment page appears as a floating element on top. image

WebPay Form is a simple web service; merchant should collect data consisted of buyer’s profile and order info at his site and submit that data to https://ipgtest.monri.com/v2/form using HTTP POST method. image

Installation ⚙️

Just clone the repo, install the packages with Node Packages Manager:

$ git clone git@github.com:harunk-monri/monri-integrations.git
$ cd monri-integrations          # Change current directory to the newly created one

Monri Components

$ cd components
$ node components.js          # Copy the client_secret and paste it inside script.js
Response Status: 200
Result: {
  status: 'approved',
  id: 'e38bfa8dac335df91091a33b3e942f580a26ee0d',
  client_secret: 'e38bfa8dac335df91091a33b3e942f580a26ee0d'
}

Replace the generated client_secret value with the existing one inside script.js

const client_secret = "e38bfa8dac335df91091a33b3e942f580a26ee0d";

Then run ../components/index.html and you will see Monri Components Integration🎉

Monri Lighbox

$ cd lightbox
$ node lightbox.js          # Copy the amount,order_number,digest and paste it inside script.js
Amount: 550
Digest: fd933f9e45b4425c69609460c4a4cf35f36c78e26155f8cdd4ef3225dabc97fce97f35e70dd9a0f651e59ed39a9761982ed5fea5beb1f843dca9c17b930da6ea
Order number: 10405

Replace the generated data-amount, data-order_number, data-digest value with the existing one inside ../lightbox/index.html

data-amount="550"
data-order-number="10405"
data-digest="fd933f9e45b4425c69609460c4a4cf35f36c78e26155f8cdd4ef3225dabc97fce97f35e70dd9a0f651e59ed39a9761982ed5fea5beb1f843dca9c17b930da6ea"

Then run ../lightbox/index.html and you will see Monri Lightbox Integration🎉

Monri Redirect

$ cd redirect

Then run ../redirect/index.html and you will see Monri Redirect Integration🎉

© 2023 Monri Payments

About

Monri Web integrations Example Demo (Components, Lightbox, Redirect)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors