WordPress integration for globalis/chargebee-php-sdk
- Convert PSR-14 events into WordPress hooks
- Add query-monitor integration
composer require globalis/chargebee-php-sdk-wp
<?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);