From 06f9a8169a9219ef84a3a5731ec16ee4534b60e7 Mon Sep 17 00:00:00 2001
From: hisyam <hisyam@molpay.com>
Date: Thu, 10 Dec 2020 09:03:34 +0800
Subject: [PATCH] added shopeepay channel

---
 MOLPayXDKExample/config.xml        |  3 +++
 MOLPayXDKExample/package-lock.json | 12 ++++++------
 MOLPayXDKExample/package.json      |  4 ++--
 MOLPayXDKExample/www/js/index.js   | 16 ++++++++--------
 4 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/MOLPayXDKExample/config.xml b/MOLPayXDKExample/config.xml
index 32936d5..7145be6 100644
--- a/MOLPayXDKExample/config.xml
+++ b/MOLPayXDKExample/config.xml
@@ -27,4 +27,7 @@
         <allow-intent href="itms:*" />
         <allow-intent href="itms-apps:*" />
     </platform>
+    <plugin name="molpay-mobile-xdk-cordova" spec="^3.29.1" />
+    <engine name="android" spec="^8.1.0" />
+    <engine name="ios" spec="^5.1.1" />
 </widget>
diff --git a/MOLPayXDKExample/package-lock.json b/MOLPayXDKExample/package-lock.json
index c076e55..393afcf 100644
--- a/MOLPayXDKExample/package-lock.json
+++ b/MOLPayXDKExample/package-lock.json
@@ -143,9 +143,9 @@
       "integrity": "sha1-xicm8ySMTGHR8ekkL5zbXr8KcRo="
     },
     "cordova-plugin-inappbrowser": {
-      "version": "3.2.0",
-      "resolved": "https://registry.npmjs.org/cordova-plugin-inappbrowser/-/cordova-plugin-inappbrowser-3.2.0.tgz",
-      "integrity": "sha512-tYsK0H9M8POmJTVnfyIsiRgoOxnypa9IQIbf/Hsgi7vbgUYRHtBUfvXwq4RhMqLIVrCeJLXF2hTXTDNY0a/eTA=="
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/cordova-plugin-inappbrowser/-/cordova-plugin-inappbrowser-4.1.0.tgz",
+      "integrity": "sha512-jPvcwDx2/L5ZbVG69NT2xmlG1E+MljRxkdsFpgj/5aoaF4oPqxg44J/bYxJNWgQtGnRSRWoqCRmU7FgmmMNMxA=="
     },
     "cordova-plugin-whitelist": {
       "version": "1.3.4",
@@ -432,9 +432,9 @@
       "integrity": "sha512-GNeaws4pApDh4NnlJO7orRmPvedKoQJ6iRPbzSxHEzOkU/30sRDSUr0rY9SLT1oi+cfynfZEg2Ir2B8bE7gj2Q=="
     },
     "molpay-mobile-xdk-cordova": {
-      "version": "3.29.0",
-      "resolved": "https://registry.npmjs.org/molpay-mobile-xdk-cordova/-/molpay-mobile-xdk-cordova-3.29.0.tgz",
-      "integrity": "sha512-t/E/Pe5Gp8ddluXcQV0uToXzsZtSvZVozPt399jX9Q48gCi0gjCNenTCU/AI9QG/0LiB4YN52hulT752af7mtg=="
+      "version": "3.29.1",
+      "resolved": "https://registry.npmjs.org/molpay-mobile-xdk-cordova/-/molpay-mobile-xdk-cordova-3.29.1.tgz",
+      "integrity": "sha512-tGbvBgABejf0EIMfJTqNUIltkJN1I3CZ6KyLFcf8NhgT9/Is5ack2zkfdB+f1bjBUXEq6KhyXVQJ0v+/4Yf/1A=="
     },
     "nice-try": {
       "version": "1.0.5",
diff --git a/MOLPayXDKExample/package.json b/MOLPayXDKExample/package.json
index ec10c6e..fc02033 100644
--- a/MOLPayXDKExample/package.json
+++ b/MOLPayXDKExample/package.json
@@ -16,10 +16,10 @@
     "cordova-android": "^8.1.0",
     "cordova-ios": "^5.1.1",
     "cordova-plugin-android-permissions": "^0.10.0",
-    "cordova-plugin-inappbrowser": "^3.2.0",
+    "cordova-plugin-inappbrowser": "^4.1.0",
     "cordova-plugin-x-toast": "^2.7.2",
     "cordova-save-image-gallery": "0.0.26",
     "molpay-mobile-cordova-privacyscreen": "^1.0.0",
-    "molpay-mobile-xdk-cordova": "^3.29.0"
+    "molpay-mobile-xdk-cordova": "^3.29.1"
   }
 }
\ No newline at end of file
diff --git a/MOLPayXDKExample/www/js/index.js b/MOLPayXDKExample/www/js/index.js
index 4c7767b..49809f4 100644
--- a/MOLPayXDKExample/www/js/index.js
+++ b/MOLPayXDKExample/www/js/index.js
@@ -13,15 +13,15 @@ var app = {
         // MOLPay payment details
         var paymentDetails = {
             // ------- SDK required data ----------
-            'mp_amount' : '',
-            'mp_username' : '',
-            'mp_password' : '',
-            'mp_merchant_ID' : '',
-            'mp_app_name' : '',   
-            'mp_order_ID' : '1234567890', 
+            'mp_amount' : '1.10',
+            'mp_username': '',
+            'mp_password': '',
+            'mp_merchant_ID': '',
+            'mp_app_name': '',   
+            'mp_order_ID' : '1234', 
             'mp_currency' : 'MYR',
             'mp_country' : 'MY',  
-            'mp_verification_key' : '',  
+            'mp_verification_key': '',  
             'mp_channel' : 'multi', 
             'mp_bill_description' : 'description',
             'mp_bill_name' : 'name',
@@ -48,7 +48,7 @@ var app = {
             // 'mp_bill_mobile_edit_disabled': true, // Optional, explicitly force disable billing mobile edit.
             // 'mp_bill_description_edit_disabled': true, // Optional, explicitly force disable billing description edit.
             // 'mp_language': 'EN', // Optional, EN, MS, VI, TH, FIL, MY, KM, ID, ZH.
-            // 'mp_dev_mode': true // Optional, enable for online sandbox testing.
+            //'mp_dev_mode': true // Optional, enable for online sandbox testing.
         };
 
         var molpayCallback = function (transactionResult) {