修改支付宝支付测试案例

This commit is contained in:
Anyon 2020-07-30 17:41:37 +08:00
parent 8f07eba9a9
commit 2308c9fb32
2 changed files with 3 additions and 4 deletions

View File

@ -28,10 +28,9 @@ try {
$result = $pay->apply([
'out_trade_no' => time(), // 商户订单号
'total_amount' => '1', // 支付金额
'subject' => 'test subject', // 支付订单描述
'subject' => '支付宝订单标题', // 支付订单描述
]);
echo '<pre>';
var_export($result);
echo $result;
} catch (\Exception $e) {
echo $e->getMessage();
}

View File

@ -26,7 +26,7 @@ try {
// 请参考请求参数https://docs.open.alipay.com/api_15/alipay.data.dataservice.bill.downloadurl.query
$result = $pay->apply([
'bill_date' => '2018-10-03', // 账单时间(日账单yyyy-MM-dd,月账单 yyyy-MM)
'bill_date' => '2020-07-03', // 账单时间(日账单yyyy-MM-dd,月账单 yyyy-MM)
'bill_type' => 'signcustomer', // 账单类型(trade指商户基于支付宝交易收单的业务账单,signcustomer是指基于商户支付宝余额收入及支出等资金变动的帐务账单)
]);
echo '<pre>';