PHP code example of cigalpay / cigalpay-php-sdk

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

    

cigalpay / cigalpay-php-sdk example snippets


$sdk = new \Cigalpay\CigalpaySDK('https://api.cigalpay.icu', 'your-api-key');

$response = $sdk->createPayment(0.05, 'LTC', 'order123', 'https://callback.url/ipn', 'https://callback.url/invoice');

print_r($response);
bash
composer