PHP code example of globalis / chargebee-php-sdk-wp

1. Go to this page and download the library: Download globalis/chargebee-php-sdk-wp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

globalis / chargebee-php-sdk-wp example snippets




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