/chargebee-php-sdk-wp

chargebee-php-sdk integration for WordPress

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

chargebee-php-sdk-wp

Packagist Latest Stable Version License

Overview

WordPress integration for globalis/chargebee-php-sdk

Features

  • Convert PSR-14 events into WordPress hooks
  • Add query-monitor integration

Installation

composer require globalis/chargebee-php-sdk-wp

Basic usage

<?php

add_action('globalis/chargebee_api_response', function($event) {
    // $event contains data about the API request and response
    // do something
}, 10, 1);

add_action('globalis/chargebee_api_error', function($event) {
    // $event contains data about the API request and response
    // do something
}, 10, 1);

Screenshots

chargebee-php-sdk-wp query-monitor