使用方法:
<?php
include("payjs.class.php");
$mchid = '123456';
$key = 'xxxxxx';
$data = [
"mchid" => $mchid,
"total_fee" => 1,
"out_trade_no" => '123123123',
];
$payjs = new Payjs($mchid, $key);
$result = $payjs->native($data);
print_r($result);