作者 王智

文档修改

... ... @@ -1244,27 +1244,4 @@ class User extends Api
$this->success('成功', $data);
}
public function ceshi111()
{
//配置
$options = [
'app_id' => 'wxf0764538543e66eb',
'payment' => [
'merchant_id' => '1604311610',
'key' => 'nbusy93Hqwe6390LSs4k2Dap1nxZvqps',
'cert_path' => '/home/wwwroot/fast/sedum/addons/epay/certs/apiclient_cert.pem', // XXX: 绝对路径!!!!
'key_path' => '/home/wwwroot/fast/sedum/addons/epay/certs/apiclient_key.pem', // XXX: 绝对路径!!!!
],
];
$app = new Application($options);
$payment = $app->payment;
try {
$result = $payment->refundByTransactionId('4200000941202103169022077095', '2021031651100579', 188 * 100, 188 * 100); // 总金额 100, 退款 80,操作员:商户号
} catch (Exception $e) {
$e->getMessage();
}
dump($result);
die;
}
}
... ...