Skip to content

Commit 5a1f8c2

Browse files
committed
BETA 0.20.0
1 parent 2ab607f commit 5a1f8c2

10 files changed

Lines changed: 91 additions & 63 deletions

File tree

README.md

Lines changed: 80 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -148,84 +148,107 @@ Parameter and meaning:
148148

149149
```
150150
var paymentDetails = {
151-
// Mandatory String. A value more than '1.00'
152-
'mp_amount': '1.1',
153-
// Mandatory String. Values obtained from MOLPay
154-
'mp_username': '',
155-
'mp_password': '',
156-
'mp_merchant_ID': '',
157-
'mp_app_name': '',
158-
'mp_verification_key': '',
159-
160-
// Mandatory String. Payment values
161-
'mp_order_ID': '',
162-
'mp_currency': 'MYR',
163-
'mp_country': 'MY',
164-
151+
// Optional, REQUIRED when use online Sandbox environment and account credentials.
152+
'mp_dev_mode': false,
153+
154+
// Mandatory String. Values obtained from MOLPay.
155+
'mp_username' : 'username',
156+
'mp_password' : 'password',
157+
'mp_merchant_ID' : 'merchantid',
158+
'mp_app_name' : 'appname',
159+
'mp_verification_key' : 'vkey123',
160+
161+
// Mandatory String. Payment values.
162+
'mp_amount' : '1.10',, // Minimum 1.01
163+
'mp_order_ID' : 'orderid123',
164+
'mp_currency' : 'MYR',
165+
'mp_country' : 'MY',
166+
165167
// Optional String.
166-
'mp_channel': '', // Use 'multi' for all available channels option. For individual channel seletion, please refer to https://github.com/MOLPay/molpay-mobile-xdk-examples/blob/master/channel_list.tsv.
167-
'mp_bill_description': 'test payment',
168-
'mp_bill_name': 'anyname',
169-
'mp_bill_email': 'example@email.com',
170-
'mp_bill_mobile': '0161111111',
171-
'mp_channel_editing': false, // Option to allow channel selection.
172-
'mp_editing_enabled': false, // Option to allow billing information editing.
173-
174-
// Optional for Escrow
175-
'mp_is_escrow': '', // Optional for Escrow, put "1" to enable escrow
176-
177-
// Optional for credit card BIN restrictions
178-
'mp_bin_lock': ['414170', '414171'], // Optional for credit card BIN restrictions
179-
'mp_bin_lock_err_msg': 'Only UOB allowed', // Optional for credit card BIN restrictions
180-
181-
// For transaction request use only, do not use this on payment process
182-
'mp_transaction_id': '', // Optional, provide a valid cash channel transaction id here will display a payment instruction screen.
183-
'mp_request_type': '', // Optional, set 'Status' when doing a transactionRequest
184-
185-
// Optional, use this to customize the UI theme for the payment info screen, the original XDK custom.css file is provided at Example project source for reference and implementation. Required cordova-plugin-file to be installed
168+
'mp_channel' : '', // Use 'multi' for all available channels option. For individual channel seletion, please refer to https://github.com/MOLPay/molpay-mobile-xdk-examples/blob/master/channel_list.tsv.
169+
'mp_bill_description' : '',
170+
'mp_bill_name' : '',
171+
'mp_bill_email' : '',
172+
'mp_bill_mobile' : '',
173+
'mp_channel_editing' : false, // Option to allow channel selection.
174+
'mp_editing_enabled' : false, // Option to allow billing information editing.
175+
176+
// Optional, but required payment values. User input will be required when values not passed.
177+
'mp_channel' : 'multi', // Use 'multi' for all available channels option. For individual channel seletion, please refer to https://github.com/MOLPay/molpay-mobile-xdk-examples/blob/master/channel_list.tsv.
178+
'mp_bill_description' : 'billdesc',
179+
'mp_bill_name' : 'billname',
180+
'mp_bill_email' : 'email@domain.com',
181+
'mp_bill_mobile' : '+1234567',
182+
183+
// Optional, allow channel selection.
184+
'mp_channel_editing' : false,
185+
186+
// Optional, allow billing information editing.
187+
'mp_editing_enabled' : false,
188+
189+
// Optional, for Escrow.
190+
'mp_is_escrow': '0', // Put "1" to enable escrow
191+
192+
// Optional, for credit card BIN restrictions and campaigns.
193+
'mp_bin_lock' : ['414170', '414171'],
194+
195+
// Optional, for mp_bin_lock alert error.
196+
'mp_bin_lock_err_msg': 'Only UOB allowed',
197+
198+
// WARNING! FOR TRANSACTION QUERY USE ONLY, DO NOT USE THIS ON PAYMENT PROCESS.
199+
// Optional, provide a valid cash channel transaction id here will display a payment instruction screen. Required if mp_request_type is 'Receipt'.
200+
'mp_transaction_id': '',
201+
// Optional, use 'Receipt' for Cash channels, and 'Status' for transaction status query.
202+
'mp_request_type': '',
203+
204+
// Optional, use this to customize the UI theme for the payment info screen, the original XDK custom.css file can be obtained at https://github.com/MOLPay/molpay-mobile-xdk-examples/blob/master/custom.css.
186205
'mp_custom_css_url': '',
187206
188-
// Optional, set the token id to nominate a preferred token as the default selection, set "new" to allow new card only
207+
// Optional, set the token id to nominate a preferred token as the default selection, set "new" to allow new card only.
189208
'mp_preferred_token': '',
190209
191-
// Optional, credit card transaction type, set "AUTH" to authorize the transaction
210+
// Optional, credit card transaction type, set "AUTH" to authorize the transaction.
192211
'mp_tcctype': '',
193212
194-
// Optional, set true to process this transaction through the recurring api, please refer the MOLPay Recurring API pdf
213+
// Optional, required valid credit card channel, set true to process this transaction through the recurring api, please refer the MOLPay Recurring API pdf.
195214
'mp_is_recurring': false,
196215
197-
// Optional for channels restriction
216+
// Optional, show nominated channels.
198217
'mp_allowed_channels': ['credit', 'credit3'],
199218
200-
// Optional for sandboxed development environment, set boolean value to enable.
201-
'mp_sandbox_mode': false,
219+
// Optional, simulate offline payment, set boolean value to enable.
220+
'mp_sandbox_mode': true,
202221
203222
// Optional, required a valid mp_channel value, this will skip the payment info page and go direct to the payment screen.
204-
'mp_express_mode': false,
223+
'mp_express_mode': true,
205224
206-
// Optional, enable this for extended email format validation based on W3C standards.
225+
// Optional, extended email format validation based on W3C standards.
207226
'mp_advanced_email_validation_enabled': true,
208-
209-
// Optional, enable this for extended phone format validation based on Google i18n standards.
210-
'mp_advanced_phone_validation_enabled' : true,
211227
212-
// Optional, explicitly force disable billing name edit.
213-
'mp_bill_name_edit_disabled': false,
228+
// Optional, extended phone format validation based on Google i18n standards.
229+
'mp_advanced_phone_validation_enabled': true,
214230
215-
// Optional, explicitly force disable billing email edit.
216-
'mp_bill_email_edit_disabled': false,
231+
// Optional, explicitly force disable user input.
232+
'mp_bill_name_edit_disabled': true,
233+
'mp_bill_email_edit_disabled': true,
234+
'mp_bill_mobile_edit_disabled': true,
235+
'mp_bill_description_edit_disabled': true,
217236
218-
// Optional, explicitly force disable billing mobile edit.
219-
'mp_bill_mobile_edit_disabled': false,
237+
// Optional, EN, MS, VI, TH, FIL, MY, KM, ID, ZH.
238+
'mp_language': 'EN',
220239
221-
// Optional, explicitly force disable billing description edit.
222-
'mp_bill_description_edit_disabled': false,
240+
// Optional, Cash channel payment request expiration duration in hour.
241+
'mp_cash_waittime': 48,
242+
243+
// Optional, allow bypass of 3DS on some credit card channels.
244+
'mp_non_3DS': true,
223245
224-
// Optional, EN, MS, VI, TH, FIL, MY, KM, ID, ZH.
225-
'mp_language': "EN",
246+
// Optional, disable card list option.
247+
'mp_card_list_disabled': true,
226248
227-
// Optional, enable for online sandbox testing.
228-
'mp_dev_mode': false
249+
// Optional for channels restriction, this option has less priority than mp_allowed_channels.
250+
'mp_disabled_channels': ['credit']
251+
229252
};
230253
```
231254

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ android {
1414

1515
dependencies {
1616
compile 'com.facebook.react:react-native:+'
17-
compile 'com.molpay:molpay-mobile-xdk-android:3.18.1'
17+
compile 'com.molpay:molpay-mobile-xdk-android:3.20.0'
1818
}

android/src/main/java/com/molpayxdk/MOLPayReactPackage.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext
2020
return modules;
2121
}
2222

23+
// @Override
24+
// public List<Class<? extends JavaScriptModule>> createJSModules() {
25+
// return Collections.emptyList();
26+
// }
27+
2328
@Override
2429
public List<NativeModule> createNativeModules(
2530
ReactApplicationContext reactContext) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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.88e23106.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.075c08e2.js"></script> <script src="scripts/scripts.e9651920.js"></script> </body> </html>
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.9f3e4059.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.f927628e.js"></script> <script src="scripts/scripts.f3a92fea.js"></script> </body> </html>

ios/MOLPayXDK.bundle/molpay-mobile-xdk-www/scripts/scripts.e9651920.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/MOLPayXDK.bundle/molpay-mobile-xdk-www/scripts/scripts.f3a92fea.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/MOLPayXDK.bundle/molpay-mobile-xdk-www/scripts/vendor.075c08e2.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/MOLPayXDK.bundle/molpay-mobile-xdk-www/scripts/vendor.f927628e.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/MOLPayXDK.bundle/molpay-mobile-xdk-www/styles/main.88e23106.css renamed to ios/MOLPayXDK.bundle/molpay-mobile-xdk-www/styles/main.9f3e4059.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "molpay-mobile-xdk-reactnative-beta",
3-
"version": "0.18.4",
3+
"version": "0.20.0",
44
"description": "MOLPay mobile payment for React Native (BETA)",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)