Skip to content

CHIPAsia/chip-for-tour-master

Repository files navigation

drawing

CHIP for Tour Master

This module adds CHIP payment method option to your Tour Master plugin.

Installation

  • 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

Configuration

Set the Brand ID and Secret Key in the plugins settings.

For currency settings, set the value to MYR.

Setting payment method whitelist

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;
  }

Screenshot

Set API Key

Other

Facebook: Merchants & DEV Community

About

CHIP for Tour Master

Topics

Resources

Stars

Watchers

Forks

Languages