商家转账功能-商户单号查询转账单接口使用官方WeChatPay SDK提示签名不对?
$app = $this->builderApp->v3->fundApp->mchTransfer->transferBills->outBillNo->_out_bill_no_
->get([
'out_bill_no' => (string)$outBillNo,
]);
Client error: `GET https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/73088893031713` resulted in a `401 Unauthorized` response:↵{"code":"SIGN_ERROR","message":"Authorization不合法"
Authorization不合法,你这是用的哪个SDK?
$this->builderApp = Builder::factory([
'mchid' => $this->merchantId,
'serial' => $this->mchCertificateSerial,
'privateKey' => $merchantPrivateKeyInstance,
'certs' => [
$platformCertificateSerial => $platformPublicKeyInstance,
],
]);
$this->builderApp->v3->fundApp->mchTransfer->transferBills->outBillNo->_out_bill_no_->getAsync([
'out_bill_no' => "73088893031713",
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
Client error: `GET https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/73088893031713` resulted in a `401 Unauthorized` response:↵{"code":"SIGN_ERROR","message":"Authorization不合法"}
还是签名不合法。。