Skip to content

Commit b8e2c4e

Browse files
authored
Update ReadMe.md
1 parent 60c1d58 commit b8e2c4e

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

Seamless_Integration/ReadMe.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,35 @@ For production
3838
```html
3939
<script src="https://www.onlinepayment.com.my/MOLPay/API/seamless/3.17/js/MOLPay_seamless.deco.js">
4040
```
41-
4241
### Set variables
4342
Insert values into these variables:
4443
```Javascript
4544
var merchant_id = "";//Insert merchant id here
4645
var orderid = ""; // Order ID should be random generated by merchant function
4746
var vkey = "**************"; //Replace ********** with your MOLPay verification_Key
4847
```
49-
Note: orderid should be defined by merchant function. Hardcoding method is used for convenience of testing
48+
*Note: orderid should be defined by merchant function. Hardcoding method is used for convenience of testing
49+
50+
### Prepare Payment object detail
51+
```Javascript
52+
status = true;// Set True to proceed with MOLPay
53+
mpsmerchantid = merchant_id;
54+
mpschannel = req.body.payment_options;
55+
mpsamount = req.body.total_amount;
56+
mpsorderid = orderid; //Order ID should be a random generated value by merchant
57+
mpsbill_name = req.body.billingFirstName + " " + req.body.billingLastName;
58+
mpsbill_email = req.body.billingEmail;
59+
mpsbill_mobile = req.body.billingMobile;
60+
mpsbill_desc = req.body.billingAddress;
61+
mpscountry = "MY";
62+
mpsvcode = md5(req.body.total_amount + merchant_id + orderid + vkey);
63+
mpscurrency = req.body.currency;
64+
mpslangcode = "en";
65+
mpstimer = req.body.molpaytimer;
66+
mpstimerbox = "#counter";
67+
mpsreturnurl = "http://127.0.0.1:8080/returnurl"; // Enter your return url here
68+
mpscancelurl = "http://127.0.0.1:8080/cancelurl"; // Enter your cancel url here
69+
mpsapiversion = "latest"; //**NOTE: For production use '3.17' / Sandbox use 'latest'
70+
```
5071
5172
Please request merchant ID and vkey from Merchant Technical Support / Customer Care : support@molpay.com . The order ID can be anything.

0 commit comments

Comments
 (0)