Skip to content

Commit

Permalink
update xdk example to use version 3.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hisyam committed Mar 31, 2021
1 parent c90ad93 commit 57bbb3f
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html> <html> <head> <meta charset="utf-8"> <title></title> <meta name="description" content=""> <!-- <meta name="viewport" content="width=device-width"> --> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <meta name="format-detection" content="telephone=no"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="styles/vendor.34eb91d2.css"> <link rel="stylesheet" href="styles/main.0855bf84.css"> </head> <body ng-app="molpayXsdkApp"> <div class="header"> </div> <div id="app-body" class="app-body container-fluid"> <div class="row"> <div class="hidden-xs col-sm-2 col-md-3 col-lg-4"></div> <div class="col-xs-12 col-sm-8 col-md-6 col-lg-4" ng-view=""></div> <div class="hidden-xs col-sm-2 col-md-3 col-lg-4"></div> </div> </div> <div ng-cloak ng-show="isStarting || isLoading" class="text-center"> <br> <p>{{label_preparing}}</p> <p>{{label_pleasewait}}</p> </div> <div class="footer"> </div> <div ng-cloak ng-show="isLoading || D7ARequeryActiveNow" class="loading text-center vertical-center"> <div class="loadingbackground"></div> <i class="fa fa-spinner fa-spin fa-3x"></i> <div class="loading-text">{{label_loading}}</div> </div> <script src="scripts/vendor.0f03d7b3.js"></script> <script src="scripts/scripts.f3d4a10f.js"></script> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title></title> <meta name="description" content=""> <!-- <meta name="viewport" content="width=device-width"> --> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <meta name="format-detection" content="telephone=no"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="styles/vendor.34eb91d2.css"> <link rel="stylesheet" href="styles/main.0ca151a6.css"> </head> <body ng-app="molpayXsdkApp"> <div class="header"> </div> <div id="app-body" class="app-body container-fluid"> <div class="row"> <div class="hidden-xs col-sm-2 col-md-3 col-lg-4"></div> <div class="col-xs-12 col-sm-8 col-md-6 col-lg-4" ng-view=""></div> <div class="hidden-xs col-sm-2 col-md-3 col-lg-4"></div> </div> </div> <div ng-cloak ng-show="isStarting || isLoading" class="text-center"> <br> <p>{{label_preparing}}</p> <p>{{label_pleasewait}}</p> </div> <div class="footer"> </div> <div ng-cloak ng-show="isLoading || D7ARequeryActiveNow" class="loading text-center vertical-center"> <div class="loadingbackground"></div> <i class="fa fa-spinner fa-spin fa-3x"></i> <div class="loading-text">{{label_loading}}</div> </div> <script src="scripts/vendor.683ba06a.js"></script> <script src="scripts/scripts.e7adf302.js"></script> </body> </html>

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MOLPayXDKExample/MOLPayXDKExample/MOLPayActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected override void OnCreate(Bundle savedInstanceState)
string json = Intent.GetStringExtra(MOLPayPaymentDetails);
paymentDetails = JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
paymentDetails.Add(module_id, "molpay-mobile-xdk-xamarin-android");
paymentDetails.Add(wrapper_version, "1");
paymentDetails.Add(wrapper_version, "0");

mpMainUI = FindViewById<WebView>(Resource.Id.MPMainUI);
mpMOLPayUI = FindViewById<WebView>(Resource.Id.MPMOLPayUI);
Expand Down
6 changes: 3 additions & 3 deletions MOLPayXDKExample/MOLPayXDKExample/MOLPayXDKExample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\fonts\fontawesome-webfont.ttf" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\fonts\fontawesome-webfont.svg" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\fonts\fontawesome-webfont.eot" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\scripts\vendor.0f03d7b3.js" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\styles\main.0855bf84.css" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\scripts\scripts.f3d4a10f.js" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\scripts\scripts.e7adf302.js" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\scripts\vendor.683ba06a.js" />
<AndroidAsset Include="Assets\molpay-mobile-xdk-www\styles\main.0ca151a6.css" />
</ItemGroup>
<ItemGroup>
<Folder Include="Assets\molpay-mobile-xdk-www\scripts\" />
Expand Down
18 changes: 9 additions & 9 deletions MOLPayXDKExample/MOLPayXDKExample/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace MainActivity
{
[Activity(Label = "MOLPayXDKExample", MainLauncher = true, Icon = "@drawable/icon")]
[Activity(Label = "RMSXdkExample", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
Expand All @@ -31,13 +31,13 @@ protected override void OnCreate(Bundle bundle)
base.OnCreate(bundle);

Dictionary<string, object> paymentDetails = new Dictionary<string, object>();
paymentDetails.Add(MOLPayActivity.mp_amount, "");
paymentDetails.Add(MOLPayActivity.mp_username, "");
paymentDetails.Add(MOLPayActivity.mp_password, "");
paymentDetails.Add(MOLPayActivity.mp_merchant_ID, "");
paymentDetails.Add(MOLPayActivity.mp_app_name, "");
paymentDetails.Add(MOLPayActivity.mp_order_ID, "");
paymentDetails.Add(MOLPayActivity.mp_verification_key, "");
paymentDetails.Add(MOLPayActivity.mp_amount, "1.01");
paymentDetails.Add(MOLPayActivity.mp_username, "api_rmsxdk_mobile_Dev");
paymentDetails.Add(MOLPayActivity.mp_password, "api_3CFMnPkh");
paymentDetails.Add(MOLPayActivity.mp_merchant_ID, "rmsxdk_mobile_Dev");
paymentDetails.Add(MOLPayActivity.mp_app_name, "rmsxdk_mobile_Dev");
paymentDetails.Add(MOLPayActivity.mp_order_ID, "xamarin android");
paymentDetails.Add(MOLPayActivity.mp_verification_key, "ee738b541eff7b6b495e44771f71c0ec");
paymentDetails.Add(MOLPayActivity.mp_currency, "MYR");
paymentDetails.Add(MOLPayActivity.mp_country, "MY");
paymentDetails.Add(MOLPayActivity.mp_channel, "multi");
Expand All @@ -47,7 +47,7 @@ protected override void OnCreate(Bundle bundle)
paymentDetails.Add(MOLPayActivity.mp_bill_mobile, "+60123456789");
paymentDetails.Add(MOLPayActivity.mp_channel_editing, false);
paymentDetails.Add(MOLPayActivity.mp_editing_enabled, false);
paymentDetails.Add(MOLPayActivity.mp_dev_mode, true);
paymentDetails.Add(MOLPayActivity.mp_dev_mode, false);
//paymentDetails.Add(MOLPayActivity.mp_is_escrow, "");
//paymentDetails.Add(MOLPayActivity.mp_transaction_id, "");
//paymentDetails.Add(MOLPayActivity.mp_request_type, "");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="Hello">Hello World, Click Me!</string>
<string name="ApplicationName">MOLPayXDKExample</string>
<string name="ApplicationName">RMSXdkExample</string>
</resources>

0 comments on commit 57bbb3f

Please sign in to comment.