|
@@ -62,7 +62,10 @@ trait ApiTrait
|
|
|
// https://pay.weixin.qq.com/doc/v3/merchant/4012791900
|
|
// https://pay.weixin.qq.com/doc/v3/merchant/4012791900
|
|
|
// 【GET】/v3/pay/transactions/out-trade-no/{out_trade_no}
|
|
// 【GET】/v3/pay/transactions/out-trade-no/{out_trade_no}
|
|
|
return $this->handleAsyncRequest(function (BuilderChainable $builder, Config $config, string $outTradeNo): PromiseInterface {
|
|
return $this->handleAsyncRequest(function (BuilderChainable $builder, Config $config, string $outTradeNo): PromiseInterface {
|
|
|
- return $builder->v3->pay->transactions->_out_trade_no_->getAsync([
|
|
|
|
|
|
|
+ return $builder->v3->pay->transactions->outTradeNo->_out_trade_no_->getAsync([
|
|
|
|
|
+ 'query' => [
|
|
|
|
|
+ 'mchid' => $config->mchid,
|
|
|
|
|
+ ],
|
|
|
'out_trade_no' => $outTradeNo,
|
|
'out_trade_no' => $outTradeNo,
|
|
|
]);
|
|
]);
|
|
|
}, $outTradeNo);
|
|
}, $outTradeNo);
|
|
@@ -78,7 +81,7 @@ trait ApiTrait
|
|
|
$total = $total ?? $refund;
|
|
$total = $total ?? $refund;
|
|
|
// https://pay.weixin.qq.com/doc/v3/merchant/4012791862
|
|
// https://pay.weixin.qq.com/doc/v3/merchant/4012791862
|
|
|
// 【POST】/v3/refund/domestic/refunds
|
|
// 【POST】/v3/refund/domestic/refunds
|
|
|
- return $this->handleAsyncRequest(function (BuilderChainable $builder, Config $config, $outRefundNo, $outTradeNo, $refund, $total, $reason) : PromiseInterface {
|
|
|
|
|
|
|
+ return $this->handleAsyncRequest(function (BuilderChainable $builder, Config $config, $outRefundNo, $outTradeNo, $refund, $total, $reason): PromiseInterface {
|
|
|
return $builder->v3->refund->domestic->refunds->postAsync([
|
|
return $builder->v3->refund->domestic->refunds->postAsync([
|
|
|
'json' => [
|
|
'json' => [
|
|
|
'out_refund_no' => $outRefundNo,
|
|
'out_refund_no' => $outRefundNo,
|