Skip to content

Commit

Permalink
Updated URL for sandbox environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
AfiqRazer committed Mar 16, 2020
1 parent 82ff3f6 commit 4d4ba6a
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 42 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@
- Migrate UIWebview to WKWebview

## 0.27.2
- Enabled TNG e-wallet Tap to Pay
- Enabled TNG e-wallet Tap to Pay

## 0.28.0
- Updated URL for sandbox environment.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ android {
dependencies {
api 'com.android.support:appcompat-v7:27.1.0'
api 'com.android.support:design:27.1.0'
api 'com.molpay:molpay-mobile-xdk-android:3.27.1'
api 'com.molpay:molpay-mobile-xdk-android:3.28.0'
}
8 changes: 4 additions & 4 deletions example/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/tekjautan/Documents/flutter-sdk/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/tekjautan/Documents/rms-github/rms-mobile-xdk-flutter-beta/example"
export "FLUTTER_TARGET=/Users/tekjautan/Documents/rms-github/rms-mobile-xdk-flutter-beta/example/lib/main.dart"
export "FLUTTER_ROOT=/Users/afiq/Development/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/afiq/Desktop/XDK/rms-mobile-xdk-flutter-beta/example"
export "FLUTTER_TARGET=/Users/afiq/Desktop/XDK/rms-mobile-xdk-flutter-beta/example/lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_FRAMEWORK_DIR=/Users/tekjautan/Documents/flutter-sdk/flutter/bin/cache/artifacts/engine/ios"
export "FLUTTER_FRAMEWORK_DIR=/Users/afiq/Development/flutter/bin/cache/artifacts/engine/ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "TRACK_WIDGET_CREATION=true"
16 changes: 9 additions & 7 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = TW9T5TAQKM;
ProvisioningStyle = Manual;
ProvisioningStyle = Automatic;
};
};
};
Expand Down Expand Up @@ -450,9 +450,10 @@
buildSettings = {
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = TW9T5TAQKM;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -466,7 +467,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.molpay.molpayMobileXdkFlutterBetaExample;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = MOLPayXDKDev20200122;
PROVISIONING_PROFILE_SPECIFIER = "";
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
Expand All @@ -477,9 +478,10 @@
buildSettings = {
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = TW9T5TAQKM;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -493,7 +495,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.molpay.molpayMobileXdkFlutterBetaExample;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = MOLPayXDKDev20200122;
PROVISIONING_PROFILE_SPECIFIER = "";
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
Expand Down
57 changes: 49 additions & 8 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,26 @@ class _MyAppState extends State<MyApp> {

var paymentDetails = {
// Mandatory String. A value more than '1.00'
'mp_amount': '',
'mp_amount': '49.00',

// Mandatory String. Values obtained from MOLPay
'mp_username': '',
'mp_password': '',
'mp_merchant_ID': '',
'mp_app_name': '',
'mp_verification_key': '',

// 'mp_username': 'SB_molpayxdk',
// 'mp_password': 'cT54#Lk@22',
// 'mp_merchant_ID': 'SB_molpayxdk',
// 'mp_app_name': 'molpayxdk',
// 'mp_verification_key': '4445db44bdb60687a8e7f7903a59c3a9',

'mp_username': 'api_SB_arrivo',
'mp_password': 'api_ArRv0124#',
'mp_merchant_ID': 'SB_arrivo',
'mp_app_name': 'arrivo',
'mp_verification_key': '504fe277a79a2377f15f8640799b1b1f',


// Mandatory String. Payment values
'mp_order_ID': '',
// 'mp_order_ID': '60186547890TUC0002',
'mp_order_ID': '60186547890',
'mp_currency': 'MYR',
'mp_country': 'MY',

Expand Down Expand Up @@ -87,11 +96,43 @@ class _MyAppState extends State<MyApp> {
// 'mp_express_mode': false,
// 'mp_bill_description_edit_disabled': false,
// 'mp_timeout' : 300,
// 'mp_dev_mode' : true
'mp_dev_mode' : true
};

// String result = await molpay.startMolpay(paymentDetails);
// print("Result" + result);

// var paymentDetails = {



// "mp_username": "api_SB_arrivo",
// "mp_amount": "40",
// "mp_country": "MY",
// "mp_password": "api_ArRv0124#",
// "mp_express_mode": true,
// // "wrapper_version": "1.0",
// "mp_verification_key": "504fe277a79a2377f15f8640799b1b1f",
// "mp_bill_mobile": "60186547890",
// "mp_bill_email": "[email protected]",
// "mp_order_ID": "60186547890TUC0001",
// // "mp_credit_card_expiry": null,
// "mp_merchant_ID": "SB_arrivo",
// "mp_dev_mode": true,
// // "module_id": "molpay-mobile-xdk-flutter-beta-android",
// // "mp_credit_card_no": null,
// "mp_bill_description": "RM 10 TOPUP",
// "mp_channel": "maybank2u",
// // "is_submodule": true,
// // "mp_credit_card_cvv": null,
// "mp_app_name": "arrivo",
// "mp_bill_name": "John Doe",
// "mp_currency": "MYR"
// };

String result = await molpay.startMolpay(paymentDetails);
print("Result" + result);

},
),
],
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified ios/MOLPayXDK.framework/Versions/A/MOLPayXDK
Binary file not shown.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: molpay_mobile_xdk_flutter_beta
description: MOLPay mobile payment for Flutter (BETA)
version: 0.27.2
version: 0.28.0
homepage: https://github.com/MOLPay/molpay-mobile-xdk-flutter-beta

dependencies:
Expand Down

0 comments on commit 4d4ba6a

Please sign in to comment.