Seamless Integration APIs
Introduction
PG seamless plugin is a browser-side JavaScript library that allows merchants to display available payment options and accept payment on website frontend without needing to redirect to payment gateway or any server-side processing on merchant end.
Getting Started
Include below javascript library in your web.
Production
<!DOCTYPE html>
<html>
<head>
<!-- jQuery (necessary for Fiuu Seamless JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://pg.e2pay.co.id/RMS/API/seamless/latest/js/MOLPay_seamless.deco.js"></script>
Sandbox
<!DOCTYPE html>
<html>
<head>
<!-- jQuery (necessary for Fiuu Seamless JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://pg-sandbox.e2pay.co.id/RMS/API/seamless/latest/js/MOLPay_seamless.deco.js"></script>
Usage
The PG seamless plugin processes your button, via data attributes or JavaScript.
Via data attributes
Activate a PG seamless without writing JavaScript. Set data-toggle="molpayseamless" on a controller element, like a button, along with a data-mpsamount="1.01" to set value.
<button type="button” data-toggle="molpayseamless">Pay by CIMBClicks</button>
Via JavaScript
Call a PG seamless with id myPay with a single line of JavaScript:
$(document).ready(function() {
var options = {
mpsmerchantid:"e2paypaymerchant",
mpschannel:"CIMB_NIAGA",
mpsamount:"10000.00",
mpsorderid:"TEST728638391",
mpsbill_name:"MOLPay Technical",
...
};
$('#myPay').MOLPaySeamless(options)
});
The required request parameters are provided in the Seamless integration Request Parameters section.
Example
Last updated