Skip to content

Commit

Permalink
0.27.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hisyam committed Feb 12, 2020
1 parent e102d35 commit dbe4f46
Show file tree
Hide file tree
Showing 10 changed files with 11,697 additions and 15 deletions.
25 changes: 13 additions & 12 deletions MOLPayReactExampleProject/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ export default class App extends Component<Props> {
var molpay = require("molpay-mobile-xdk-reactnative-beta");
var paymentDetails = {
// Mandatory String. A value more than '1.00'
'mp_amount': 1.1,
'mp_amount': '',

// Mandatory String. Values obtained from MOLPay
'mp_username': 'username',
'mp_password': 'password',
'mp_merchant_ID': 'merchantID',
'mp_app_name': 'appname',
'mp_verification_key': '12345123451234512345',
'mp_username': '',
'mp_password': '',
'mp_merchant_ID': '',
'mp_app_name': '',
'mp_verification_key': '',

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

// Optional String.
'mp_channel': '', // Use 'multi' for all available channels option. For individual channel seletion, please refer to "Channel Parameter" in "Channel Lists" in the MOLPay API Spec for Merchant pdf.
'mp_bill_description': 'test payment',
'mp_bill_name': 'anyname',
'mp_channel': 'multi', // Use 'multi' for all available channels option. For individual channel seletion, please refer to "Channel Parameter" in "Channel Lists" in the MOLPay API Spec for Merchant pdf.
'mp_bill_description': 'description',
'mp_bill_name': 'name',
'mp_bill_email': 'example@email.com',
'mp_bill_mobile': '0161111111',
'mp_bill_mobile': '+60123456789',
// 'mp_channel_editing': true, // Option to allow channel selection.
'mp_editing_enabled': true, // Option to allow billing information editing.
//'mp_editing_enabled': true, // Option to allow billing information editing.

// Optional for Escrow
// 'mp_is_escrow': '', // Optional for Escrow, put "1" to enable escrow
Expand Down Expand Up @@ -82,6 +82,7 @@ var molpay = require("molpay-mobile-xdk-reactnative-beta");
// Optional, required a valid mp_channel value, this will skip the payment info page and go direct to the payment screen.
// 'mp_express_mode': false,
// "mp_bill_description_edit_disabled": false,
//"mp_dev_mode": true

};
// start molpay payment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:scheme="testappurl" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
Expand Down
20 changes: 20 additions & 0 deletions MOLPayReactExampleProject/ios/test0270.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,14 @@
TargetAttributes = {
00E356ED1AD99517003FC87E = {
CreatedOnToolsVersion = 6.2;
DevelopmentTeam = TW9T5TAQKM;
ProvisioningStyle = Manual;
TestTargetID = 13B07F861A680F5B00A75B9A;
};
13B07F861A680F5B00A75B9A = {
DevelopmentTeam = TW9T5TAQKM;
ProvisioningStyle = Manual;
};
2D02E47A1E0B4A5D006451C7 = {
CreatedOnToolsVersion = 8.2.1;
ProvisioningStyle = Automatic;
Expand Down Expand Up @@ -1210,6 +1216,8 @@
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = TW9T5TAQKM;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
Expand All @@ -1223,6 +1231,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/test0270.app/test0270";
};
name = Debug;
Expand All @@ -1231,7 +1241,9 @@
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Manual;
COPY_PHASE_STRIP = NO;
DEVELOPMENT_TEAM = TW9T5TAQKM;
INFOPLIST_FILE = test0270Tests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand All @@ -1241,6 +1253,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/test0270.app/test0270";
};
name = Release;
Expand All @@ -1249,8 +1263,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = TW9T5TAQKM;
INFOPLIST_FILE = test0270/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = (
Expand All @@ -1260,6 +1276,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = test0270;
PROVISIONING_PROFILE_SPECIFIER = MOLPayXDKDev20200122;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
Expand All @@ -1268,7 +1285,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = TW9T5TAQKM;
INFOPLIST_FILE = test0270/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = (
Expand All @@ -1278,6 +1297,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = test0270;
PROVISIONING_PROFILE_SPECIFIER = MOLPayXDKDev20200122;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
Expand Down
9 changes: 9 additions & 0 deletions MOLPayReactExampleProject/ios/test0270/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>testappurl</string>
</array>
</dict>
</array>
<key>NSPhotoLibraryUsageDescription</key>
<string>Payment images.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
Expand Down
Loading

0 comments on commit dbe4f46

Please sign in to comment.