Code Monkey home page Code Monkey logo

chip-for-bookly's Introduction

drawing

CHIP for Bookly

This module adds CHIP payment method option to your Bookly plugin.

Installation

  • Download zip file of Bookly plugin.
  • 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.

Additional configuration are required at the moment until it is included together in Bookly plugin:

  • Edit file wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/entities/Payment.php:

    • Add class constant

      const TYPE_CHIP = 'chip';
    • Add case to switch statement in typeToString method

      case self::TYPE_CHIP:
      return 'CHIP';
    • Add constant to getTypes method

      self::TYPE_CHIP
  • Alter table wp_bookly_payments so that chip are added to enum:

    ALTER TABLE `wp_bookly_payments` CHANGE `type` `type` ENUM('chip','local','free','paypal','authorize_net','stripe','2checkout','payu_biz','payu_latam','payson','mollie','woocommerce','cloud_stripe','cloud_square') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'local';
  • Edit file bookly-responsive-appointment-booking-tool/lib/notifications/cart/Sender.php (this is temporary until it get fixed by Bookly):

    • Comment line below by adding // in infront of the line:

      //Proxy\Pro::sendCombinedToClient( false, $order );

Screenshot

Add class constant Add case to switch statement in typeToString method Add constant to getTypes method Alter table wp_bookly_payments Comment line below by adding // in infront of the line

Other

Facebook: Merchants & DEV Community

chip-for-bookly's People

Contributors

wzul avatar

Watchers

Helmi Ruza avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.