This module adds CHIP payment method option to your Tour Master plugin.
- Download plugin zip file.
- Log in to your Wordpress admin panel and go: Plugins -> Add New
- Select Upload Plugin, choose zip file you downloaded in step 1 and press Install Now
- Activate plugin
Set the Brand ID and Secret Key in the plugins settings.
For currency settings, set the value to MYR.
To configure for payment method whitelist, you may utilize this filters:
- tourmaster_chip_payment_send_params_tour
- tourmaster_chip_payment_send_params_room
Example as follows:
add_filter( 'tourmaster_chip_payment_send_params_tour', 'chip_payment_method_whitelist', 10, 2 );
add_filter( 'tourmaster_chip_payment_send_params_room', 'chip_payment_method_whitelist', 10, 2 );
function chip_payment_method_whitelist( $send_params, $tid ) {
// available option: ['fpx', 'fpx_b2b1', 'duitnow_qr', 'visa', 'mastercard', 'razer_tng', 'razer_maybank_qr', 'razer_shopeepay', 'razer_grabpay']
$send_params['payment_method_whitelist'] = ['fpx'];
return $send_params;
}
Facebook: Merchants & DEV Community