Skip to content

Commit dbe4f46

Browse files
author
hisyam
committed
0.27.1
1 parent e102d35 commit dbe4f46

10 files changed

Lines changed: 11697 additions & 15 deletions

File tree

MOLPayReactExampleProject/App.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@ export default class App extends Component<Props> {
2727
var molpay = require("molpay-mobile-xdk-reactnative-beta");
2828
var paymentDetails = {
2929
// Mandatory String. A value more than '1.00'
30-
'mp_amount': 1.1,
30+
'mp_amount': '',
3131

3232
// Mandatory String. Values obtained from MOLPay
33-
'mp_username': 'username',
34-
'mp_password': 'password',
35-
'mp_merchant_ID': 'merchantID',
36-
'mp_app_name': 'appname',
37-
'mp_verification_key': '12345123451234512345',
33+
'mp_username': '',
34+
'mp_password': '',
35+
'mp_merchant_ID': '',
36+
'mp_app_name': '',
37+
'mp_verification_key': '',
3838

3939
// Mandatory String. Payment values
40-
'mp_order_ID': 'React0002',
40+
'mp_order_ID': '',
4141
'mp_currency': 'MYR',
4242
'mp_country': 'MY',
4343

4444
// Optional String.
45-
'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.
46-
'mp_bill_description': 'test payment',
47-
'mp_bill_name': 'anyname',
45+
'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.
46+
'mp_bill_description': 'description',
47+
'mp_bill_name': 'name',
4848
'mp_bill_email': 'example@email.com',
49-
'mp_bill_mobile': '0161111111',
49+
'mp_bill_mobile': '+60123456789',
5050
// 'mp_channel_editing': true, // Option to allow channel selection.
51-
'mp_editing_enabled': true, // Option to allow billing information editing.
51+
//'mp_editing_enabled': true, // Option to allow billing information editing.
5252

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

8687
};
8788
// start molpay payment

MOLPayReactExampleProject/android/app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
<action android:name="android.intent.action.MAIN" />
2020
<category android:name="android.intent.category.LAUNCHER" />
2121
</intent-filter>
22+
<intent-filter>
23+
<action android:name="android.intent.action.VIEW" />
24+
25+
<category android:name="android.intent.category.DEFAULT" />
26+
<category android:name="android.intent.category.BROWSABLE" />
27+
28+
<data
29+
android:scheme="testappurl" />
30+
</intent-filter>
2231
</activity>
2332
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
2433
</application>

MOLPayReactExampleProject/ios/test0270.xcodeproj/project.pbxproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,14 @@
719719
TargetAttributes = {
720720
00E356ED1AD99517003FC87E = {
721721
CreatedOnToolsVersion = 6.2;
722+
DevelopmentTeam = TW9T5TAQKM;
723+
ProvisioningStyle = Manual;
722724
TestTargetID = 13B07F861A680F5B00A75B9A;
723725
};
726+
13B07F861A680F5B00A75B9A = {
727+
DevelopmentTeam = TW9T5TAQKM;
728+
ProvisioningStyle = Manual;
729+
};
724730
2D02E47A1E0B4A5D006451C7 = {
725731
CreatedOnToolsVersion = 8.2.1;
726732
ProvisioningStyle = Automatic;
@@ -1210,6 +1216,8 @@
12101216
isa = XCBuildConfiguration;
12111217
buildSettings = {
12121218
BUNDLE_LOADER = "$(TEST_HOST)";
1219+
CODE_SIGN_STYLE = Manual;
1220+
DEVELOPMENT_TEAM = TW9T5TAQKM;
12131221
GCC_PREPROCESSOR_DEFINITIONS = (
12141222
"DEBUG=1",
12151223
"$(inherited)",
@@ -1223,6 +1231,8 @@
12231231
);
12241232
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
12251233
PRODUCT_NAME = "$(TARGET_NAME)";
1234+
PROVISIONING_PROFILE_SPECIFIER = "";
1235+
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
12261236
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/test0270.app/test0270";
12271237
};
12281238
name = Debug;
@@ -1231,7 +1241,9 @@
12311241
isa = XCBuildConfiguration;
12321242
buildSettings = {
12331243
BUNDLE_LOADER = "$(TEST_HOST)";
1244+
CODE_SIGN_STYLE = Manual;
12341245
COPY_PHASE_STRIP = NO;
1246+
DEVELOPMENT_TEAM = TW9T5TAQKM;
12351247
INFOPLIST_FILE = test0270Tests/Info.plist;
12361248
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
12371249
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -1241,6 +1253,8 @@
12411253
);
12421254
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
12431255
PRODUCT_NAME = "$(TARGET_NAME)";
1256+
PROVISIONING_PROFILE_SPECIFIER = "";
1257+
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
12441258
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/test0270.app/test0270";
12451259
};
12461260
name = Release;
@@ -1249,8 +1263,10 @@
12491263
isa = XCBuildConfiguration;
12501264
buildSettings = {
12511265
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1266+
CODE_SIGN_STYLE = Manual;
12521267
CURRENT_PROJECT_VERSION = 1;
12531268
DEAD_CODE_STRIPPING = NO;
1269+
DEVELOPMENT_TEAM = TW9T5TAQKM;
12541270
INFOPLIST_FILE = test0270/Info.plist;
12551271
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
12561272
OTHER_LDFLAGS = (
@@ -1260,6 +1276,7 @@
12601276
);
12611277
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
12621278
PRODUCT_NAME = test0270;
1279+
PROVISIONING_PROFILE_SPECIFIER = MOLPayXDKDev20200122;
12631280
VERSIONING_SYSTEM = "apple-generic";
12641281
};
12651282
name = Debug;
@@ -1268,7 +1285,9 @@
12681285
isa = XCBuildConfiguration;
12691286
buildSettings = {
12701287
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1288+
CODE_SIGN_STYLE = Manual;
12711289
CURRENT_PROJECT_VERSION = 1;
1290+
DEVELOPMENT_TEAM = TW9T5TAQKM;
12721291
INFOPLIST_FILE = test0270/Info.plist;
12731292
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
12741293
OTHER_LDFLAGS = (
@@ -1278,6 +1297,7 @@
12781297
);
12791298
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
12801299
PRODUCT_NAME = test0270;
1300+
PROVISIONING_PROFILE_SPECIFIER = MOLPayXDKDev20200122;
12811301
VERSIONING_SYSTEM = "apple-generic";
12821302
};
12831303
name = Release;

MOLPayReactExampleProject/ios/test0270/Info.plist

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CFBundleURLTypes</key>
6+
<array>
7+
<dict>
8+
<key>CFBundleURLSchemes</key>
9+
<array>
10+
<string>testappurl</string>
11+
</array>
12+
</dict>
13+
</array>
514
<key>NSPhotoLibraryUsageDescription</key>
615
<string>Payment images.</string>
716
<key>NSPhotoLibraryAddUsageDescription</key>

0 commit comments

Comments
 (0)