PHP code example of cooper / jlpay-qrcode

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

    

cooper / jlpay-qrcode example snippets


$api = new Cooper\JlPayQrcode\Api((JL_PUB_KEY, MER_PRI_KEY, ORG_CODE, MER_ID));
$res = $api->sendChnQueryRequest(transactionId: '451113671593190188646497'); // 查询订单
var_dump($res);