PHP code example of chargily / chargily-pay

1. Go to this page and download the library: Download chargily/chargily-pay 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/ */

    

chargily / chargily-pay example snippets



    use Chargily\ChargilyPay\Auth\Credentials;
    use Chargily\ChargilyPay\ChargilyPay;

    y_here",
        "secret" => "secret_key_here",
    ]);

    $chargily_pay = new ChargilyPay($credentials);

    $chargily_pay->balance()->get(),
    $chargily_pay->checkouts()->all(),
    $chargily_pay->customers()->all(),
    $chargily_pay->payment_links()->all(),
    $chargily_pay->prices()->all(),
    $chargily_pay->products()->all(),
    //validate and get Webhook details
    $chargily_pay->webhook()->get()

bash
git clone https://github.com/Chargily/chargily-pay-php.git