PHP code example of swimtobird / yee-pay

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

    

swimtobird / yee-pay example snippets




$config = [
    'app_key' => 'xxx',
    'merchant_no' => 'xxx',
    'parent_merchant_no' => 'xxx',
    'public_key' => 'xxx',
    'app_private_key' => 'xxx'
];

$pay = new Swimtobird\YeePay\PayProvider('Yee_Pay',$config);

var_dump($pay->pay([
    'merchantNo' => 10000466938,
    'parentMerchantNo' => 10000466938,
]));