PHP code example of yx1hlqbk / paynow

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

    

yx1hlqbk / paynow example snippets




use Ian\PayNow\PayNow;

try {
    $PayNow = new PayNow();
    $invoice = $PayNow->invoice('', ''); // 使用發票功能
    // ....
    
    $cash = $PayNow->cash('', ''); // 使用金流
    // ....

    $logistic = $PayNow->logistic('', ''); // 使用物流
    // ....
} catch (\Throwable $th) {
    echo $th->getMessage();
}