Skip to content

Commit

Permalink
Changed var name of vkey to secret_key
Browse files Browse the repository at this point in the history
  • Loading branch information
Hibar3 authored May 21, 2018
1 parent e0a3b0d commit 78f6448
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Normal Integration/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ app.get('/', function(req, res) {
});

//var merchant_id = '';//Insert merchant id here
var vkey = "**********"; //Replace ********** with your MOLPay Secret_Key
var secret_key = "**********"; //Replace ********** with your MOLPay Secret_Key
var key0;
var key1;
var enviroment = "sandbox"; //sandbox or production
Expand Down Expand Up @@ -104,8 +104,8 @@ app.post('/returnurl', urlencodedParser, function(req, res){
* To verify the data integrity sending by MOLPay
************************************************************/
//md5 encryption
key0 = md5( tranID+orderid+status+domain+amount+currency );
key1 = md5( paydate+domain+key0+appcode+vkey );
key0 = md5(tranID +orderid + status + domain + amount + currency);
key1 = md5(paydate + domain + key0 + appcode + secret_key);

//control statement for verification
//invalid transaction if the key is different. Merchant might issue a requery to MOLPay to double check payment status with MOLPay.
Expand Down

0 comments on commit 78f6448

Please sign in to comment.