PHP code example of cblink / hualala

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

    

cblink / hualala example snippets


use Cblink\Hualala\Hualala;
use Cblink\Hualala\HualalaOptions;

return new Hualala([
    HualalaOptions::DEBUG => true,
    HualalaOptions::DEVELOPER_ID => 123,
    HualalaOptions::DEVELOPER_PASSWORD => 'xxx',
    HualalaOptions::MERCHANT_ID => 456,
    HualalaOptions::MERCHANT_PASSWORD => 'xxx',
    HualalaOptions::GROUP_ID => 789,
    HualalaOptions::AES_KEY => 'xxxxxxxxxxxxxxxx',
]);