Razer Merchant Services Seamless Integration for RMS Indonesia (non PCI) - RazerMS/Integration-RazerMS_JavaScript_Seamless_Integration GitHub Wiki

Seamless Integration

This page will include latest seamless version released by Razer Merchant Services Technical.

Important

Please do not generate your vcode in JS as this will disclose the merchant verify key.

Getting started

Register your domain by email to our support : [email protected]

Include below javascript library in your web.

 <!-- jQuery (necessary for Razer Merchant Services 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>
 <!-- jQuery (necessary for Razer Merchant Services Seamless JavaScript plugins) -->
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
 <script src="https://pg-uat.e2pay.co.id/RMS/API/seamless/latest/js/MOLPay_seamless.deco.js"></script>

Example 1

payment-e2Pay_DANA

<!-- Button trigger Razer Merchant Services Seamless -->
<button type="button" id="myPay" class="btn btn-primary btn-lg" data-toggle="molpayseamless" data-mpsmerchantid="molpaymerchant" data-mpschannel="e2Pay_DANA" data-mpsamount="100" data-mpsorderid="TEST202308281715" data-mpsbill_name="RMS Technical" >Pay by DANA</button>

Example 2

New input UI for card payment is available from latest version or version 3.28 and above.

image

Download our Demo version.

Example 3 (Payment Timer Enable)

New input UI for card payment is available from latest version or version 3.28 and above.

image

Download our Demo version.

Usage

The Razer Merchant Services seamless plugin process your button, via data attributes or JavaScript.

Via data attributes

Activate a Razer Merchant Services seamless without writing JavaScript. Set data-toggle="molpayseamless" on a controller element, like a button, along with a data-mpsamount="10000" to set value.

<button type="button" data-toggle="molpayseamless">Pay by DANA</button> 

Via JavaScript

Call a Razer Merchant Services seamless with id myPay with a single line of JavaScript:

$( document ).ready(function() {
     var options = { 
                    mpsmerchantid:"rmsmerchant",
                    mpschannel:"e2Pay_DANA", 
                    mpsamount:"100", 
                    mpsorderid:"TEST202308281657", 
                    mpsbill_name:"RMS Technical", 
                    ...
                   }; 
                    
     $('#myPay').MOLPaySeamless(options)
});
                        

Options

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-mpsamount="".

Name Data Type (size) M/O Description
mpsmerchantid an{1..32} M Merchant login username provided by Razer Merchant Services.
mpschannel an{3..32} M Refer to Appendix C for more channel code.
mpsamount ns{10,2} M The transaction amount in one bill. Integer or up to 2 decimal points numeric value. Min accepted amount : 1.01
mpsorderid an{1..32} M Bill / Invoice no. provided by merchant.
mpsbill_name a{1..128} M Buyer name. (Please do not pass in dummy data if you want to use the saved cards feature, as this info will be used to identify the ownership of the card’s token. If you need to use dummy data, kindly refer to mpsguestcheckout.)
mpsbill_email ans{1..128} M Buyer email. (Please do not pass in dummy data if you want to use the saved cards feature, as this info will be used to identify the ownership of the card’s token. If you need to use dummy data, kindly refer to mpsguestcheckout.)
mpsbill_mobile n{1..128} M Buyer mobile contact number. (Please do not pass in dummy data if you want to use the saved cards feature, as this info will be used to identify the ownership of the card’s token. If you need to use dummy data, kindly refer to mpsguestcheckout.)
mpsbill_desc an{1..200} M Bill / Description provided by merchant / buyer.
mpscountry a{2} O Buyer country.
mpsbill_add an{1..200} C Buyer address, mandatory for Buy Now Pay Later channel.
mpsbill_zip n{5} C Buyer postcode, mandatory for Buy Now Pay Later channel.
mpsvcode an{32} C This is the data integrity protection hash string provided by merchant.
mpscurrency a{3} M Payment currency, E.g. MYR, SGD, USD & etc.
mpslangcode a{2} O Default language, E.g. 'en' for default
mpsreturnurl ans{1..200} O Used for multiple return URL. All URLs must be registered beforehand with Razer Merchant Services.
mpsnotifyurl ans{1..200} O Used for multiple notification URL. All URLs must be registered beforehand with Razer Merchant Services.
mpscallbackurl ans{1..200} O Used for multiple callback URL. All URLs must be registered beforehand with Razer Merchant Services.
mpstimer n O Duration of payment. Value in minutes. Set 0 to disable this feature, append this to the pre-hashing vcode string if mpstimer is in used
mpstimerbox ans C Element id or class name to show the timer. Mandatory when timer is enable. E.g. #timercounter, .timercounter
mpscancelurl ans{1..200} C URL to redirect when the payment is time out. Mandatory when timer is enable. All payment request parameter will be return. Merchant is advice to implement requery at this page.
mpstokenstatus n[0/1] O To tokenized the transaction.
mpstcctype a{4} O Available value is SALS = Capture Transaction (Default)
mpsguestcheckout n[0/1] O Used to indicate that this checkout does not belong to a registered user. Equal to 0 by default and 1 if the merchant does not hold the customer’s bill_name, bill_email or bill_mobile. Saved card payment will disabled if set as 1.
non_3ds n[0/1] O Available value is 0 = Process Transaction with 3DS (Default), 1 = Process Transaction with Non 3DS
mpsextra a{8..65535} O Format:
NumOfMer#merA : amtA | merB : amtB | merC : amtC (without space) E.g:3#samsung:30.10|doorstep:120.00|senQ:15.99
mpsplitinfo ans O Used for “Alipay Split Payment”. Values with pipe ( | ) as data delimiter and comma ( , ) as recipient separator as the format shown below without ‘<’ and ‘>’ :-
<Alipay_userID>|<amount>|<currency>|<description>,
<Alipay_userID>|<amount>|<currency>|<description>
mpsinstallmonth n C Total month of installment. Mandatory for installment payment. E.g: 0, 3, 6, 12, 24
mpsis_DDA n{1} C Indicator for DirectDebit e-Mandate transaction.
Valid values are:-
0 : Normal transaction (default)
1 : DirectDebit enrollment transaction (e-Mandate or DDA)
2 : DirectDebit modification transaction (e-Mandate or DDA)
3 : DirectDebit termination transaction (e-Mandate or DDA)
Token upon successful enrollment is expected to be available on next working day, usually after 1000HRS via Callback URL.Please send in the maximum authorized amount for future debit instruction during enrollment via TxnAmount
mpsbuyerid_number an{20} C Buyer ID number (i.e. NRIC/Passport number) without special character. Please send together with BuyerIDType. Mandatory for DirectDebit e-Mandate (DDA or the enrollment transaction)
mpsbuyerid_type n{1} C ID identifier type of a buyer (i.e. NRIC/Passport No) or organization. Mandatory for DirectDebit e-Mandate (DDA or the enrollment transaction).
Valid values are:-
1 : New IC Number
2 : Old IC Number
3 : Passport Number
4 : Business Registration

Appendix A: Data Type Details

No Code Description
1. a Letters, A-Za-z
2. n Numbers, 0-9
3. s Symbols, .:
4. {x} Fixed length x
5. {y..x} Length range: y – x
6. {y,x} Number range: 0-9. 0-9

Appendix B: M/O Details

No Code Description
1. M Mandatory field.
2. O Optional field, value can be empty.
3. C Conditional

Appendix C: Channel details (mpschannel)

No Code Description Type Currency
1. e2Pay_DANA DANA e-Wallet IDR
2. e2Pay_LINKAJA_APPLINK LINKAJA_APPLINK e-Wallet IDR
3. e2Pay_CIMB_OCTO_MOBILE CIMB_OCTO_MOBILE e-Wallet IDR
4. e2Pay_SHOPEEPAY_JUMPAPP SHOPEEPAY_JUMPAPP e-Wallet IDR
5. e2Pay_OVO OVO e-Wallet IDR
6. e2Pay_PERMATA_VA PERMATA_VA OTC IDR
7. e2Pay_BNI_VA BNI_VA OTC IDR
8. e2Pay_CIMB_VA CIMB_VA OTC IDR
9. e2Pay_BCA_VA BCA_VA OTC IDR
10. e2Pay_BRI_VA BRI_VA OTC IDR
11. e2Pay_MANDIRI_VA MANDIRI_VA OTC IDR
12. e2Pay_CIMBOctoClicks_IB CIMBOctoClicks_IB Internet Banking IDR
13. e2Pay_Kredivo_FN Kredivo_FN BNPL IDR
14. CIMB_NIAGA credit Credid Card IDR
15. e2Pay_NUCash NUCash e-Wallet IDR
16. e2Pay_CIMB_OctoPay CIMB Octo Pay e-Wallet IDR
17. e2Pay_LINKAJA_QRIS LINKAJA_QRIS e-Wallet IDR
18. e2Pay_LINKAJA_WCO LINKAJA_WCO e-Wallet IDR
19. e2Pay_CIMB_QRIS CIMB_QRIS e-Wallet IDR
20. e2Pay_SHOPEEPAY_QRIS SHOPEEPAY_QRIS e-Wallet IDR
21. e2Pay_MBayar_QR MBayar_QR e-Wallet IDR
22. e2Pay_MBayar_Auth MBayar_Auth e-Wallet IDR
23. e2Pay_Indomaret Indomaret OTC IDR
24. e2Pay_Alfamart Alfamart e-Wallet IDR
25. e2Pay_GOPAY GOPAY e-Wallet IDR
26. e2Pay_DBankPro_IB DBankPro_IB Internet Banking IDR
27. e2Pay_Indodana_FN Indodana_FN BNPL IDR

Revision History

Update 2023/08/28

  • Added Seamless Integration for RMS Indonesia (non-PCI)

Support

Merchant Technical Support / Customer Care : [email protected]
Sales/Reseller Enquiry : [email protected]
Marketing Campaign : [email protected]
Channel/Partner Enquiry : [email protected]
Media Contact : [email protected]
R&D and Tech-related Suggestion : [email protected]
Abuse Reporting : [email protected]

⚠️ **GitHub.com Fallback** ⚠️