- 请求微信支付接口报错
调用微信支付接口,https://api.mch.weixin.qq.com/v3/pay/transactions/native接口时,报错了,提示The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the。这是什么原因啊,入参也没发现问题啊
02-12 - "商家转账"功能发起转账,提示NO_AUTH(当前商户号没有相关权限,暂不支持使用)
确认已开通了"商家转账"功能 [图片] 发起参数也是按照:https://pay.weixin.qq.com/doc/v3/merchant/4012716434 搞得 接口签名,使用的是wechatpay-java sdk,提供的调用http请求的方式 [图片] 调用的核心方法如下 /** * 发起转账 */ public MerchantTransferBillResponse transferBills(MerchantTransferBillRequest request) { // 文档地址:https://pay.weixin.qq.com/doc/v3/merchant/4012716434 String requestPath = "https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills"; requestPath = replaceApiHostName(requestPath); HttpHeaders headers = new HttpHeaders(); headers.addHeader(Constant.ACCEPT, MediaType.APPLICATION_JSON.getValue()); headers.addHeader(Constant.CONTENT_TYPE, MediaType.APPLICATION_JSON.getValue()); HttpRequest executeRequest = new HttpRequest.Builder() .httpMethod(HttpMethod.POST) .url(requestPath) .headers(headers) .body(createRequestBody(request)) .build(); HttpResponse<MerchantTransferBillResponse> executeResponse = httpClient.execute(executeRequest, MerchantTransferBillResponse.class); return executeResponse.getServiceResponse(); } 发起接口返回 403 NO_AUTH 当前商户号没有相关权限,暂不支持使用 相同的配置(商户号、证书密钥等),可以成功调用"商户转账到零钱"的转账接口 请问这种情况应该怎么处理?
02-17