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
'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',
48
-
'mp_bill_email': 'example@email.com',
49
-
'mp_bill_mobile': '+60123456789',
50
-
// 'mp_channel_editing': true, // Option to allow channel selection.
51
-
//'mp_editing_enabled': true, // Option to allow billing information editing.
52
-
53
-
// Optional for Escrow
54
-
// 'mp_is_escrow': '', // Optional for Escrow, put "1" to enable escrow
55
-
56
-
// Optional for credit card BIN restrictions
57
-
//'mp_bin_lock': ['414170', '414171'], // Optional for credit card BIN restrictions
58
-
//'mp_bin_lock_err_msg': 'Only UOB allowed', // Optional for credit card BIN restrictions
59
-
60
-
// For transaction request use only, do not use this on payment process
61
-
// 'mp_transaction_id': '', // Optional, provide a valid cash channel transaction id here will display a payment instruction screen.
62
-
// 'mp_request_type': '', // Optional, set 'Status' when doing a transactionRequest
63
-
64
-
// 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.
65
-
// 'mp_custom_css_url': '',
66
-
67
-
// Optional, set the token id to nominate a preferred token as the default selection, set "new" to allow new card only
68
-
// 'mp_preferred_token': '',
69
-
70
-
// Optional, credit card transaction type, set "AUTH" to authorize the transaction
71
-
// 'mp_tcctype': '',
72
-
73
-
// Optional, set true to process this transaction through the recurring api, please refer the MOLPay Recurring API pdf
74
-
// // 'mp_is_recurring': false,
75
-
76
-
// Optional for channels restriction
77
-
// 'mp_allowed_channels': ['credit','credit3'],
78
-
79
-
// Optional for sandboxed development environment, set boolean value to enable.
80
-
// 'mp_sandbox_mode': false,
81
-
82
-
// Optional, required a valid mp_channel value, this will skip the payment info page and go direct to the payment screen.
'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': 'biller name',
48
+
'mp_bill_email': 'example@gmail.com',
49
+
'mp_bill_mobile': '+60123456789',
50
+
// 'mp_channel_editing': true, // Option to allow channel selection.
51
+
//'mp_editing_enabled': true, // Option to allow billing information editing.
52
+
53
+
// Optional for Escrow
54
+
// 'mp_is_escrow': '', // Optional for Escrow, put "1" to enable escrow
55
+
56
+
// Optional for credit card BIN restrictions
57
+
//'mp_bin_lock': ['414170', '414171'], // Optional for credit card BIN restrictions
58
+
//'mp_bin_lock_err_msg': 'Only UOB allowed', // Optional for credit card BIN restrictions
59
+
60
+
// For transaction request use only, do not use this on payment process
61
+
// 'mp_transaction_id': '', // Optional, provide a valid cash channel transaction id here will display a payment instruction screen.
62
+
// 'mp_request_type': '', // Optional, set 'Status' when doing a transactionRequest
63
+
64
+
// 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.
65
+
// 'mp_custom_css_url': '',
66
+
67
+
// Optional, set the token id to nominate a preferred token as the default selection, set "new" to allow new card only
68
+
// 'mp_preferred_token': '',
69
+
70
+
// Optional, credit card transaction type, set "AUTH" to authorize the transaction
71
+
// 'mp_tcctype': '',
72
+
73
+
// Optional, set true to process this transaction through the recurring api, please refer the MOLPay Recurring API pdf
74
+
// // 'mp_is_recurring': false,
75
+
76
+
// Optional for channels restriction
77
+
// 'mp_allowed_channels': ['credit','credit3'],
78
+
79
+
// Optional for sandboxed development environment, set boolean value to enable.
80
+
// 'mp_sandbox_mode': false,
81
+
82
+
// Optional, required a valid mp_channel value, this will skip the payment info page and go direct to the payment screen.
83
+
// 'mp_express_mode': false,
84
+
// "mp_bill_description_edit_disabled": false,
85
+
// "mp_dev_mode": true
86
+
87
+
};
88
+
// start molpay payment
89
+
molpay.startMolpay(paymentDetails,function(data){
90
+
console.log(data);
91
+
//console.log(paymentDetails);
92
+
console.log(this);
93
+
alert(JSON.stringify(data));
94
+
//callback after payment success
95
+
c.setState({
96
+
string: data
97
+
})
98
+
99
+
});
100
+
};
101
101
102
102
render(){
103
103
return(
104
104
<Viewstyle={styles.container}>
105
105
<Textstyle={styles.welcome}>Welcome to React Native!</Text>
0 commit comments