You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+80-57Lines changed: 80 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,84 +148,107 @@ Parameter and meaning:
148
148
149
149
```
150
150
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
+
165
167
// 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.
186
205
'mp_custom_css_url': '',
187
206
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.
189
208
'mp_preferred_token': '',
190
209
191
-
// Optional, credit card transaction type, set "AUTH" to authorize the transaction
210
+
// Optional, credit card transaction type, set "AUTH" to authorize the transaction.
192
211
'mp_tcctype': '',
193
212
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.
195
214
'mp_is_recurring': false,
196
215
197
-
// Optional for channels restriction
216
+
// Optional, show nominated channels.
198
217
'mp_allowed_channels': ['credit', 'credit3'],
199
218
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,
202
221
203
222
// 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,
205
224
206
-
// Optional, enable this for extended email format validation based on W3C standards.
225
+
// Optional, extended email format validation based on W3C standards.
207
226
'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,
211
227
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,
214
230
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,
217
236
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',
220
239
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,
223
245
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,
226
248
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.
0 commit comments