wxPayConfig.getMchSerialNo 获取的是「商户API证书序列号」非「微信支付平台证书序列号/微信支付公钥ID」,代码看着是赋值搞错了
02-11https://wechatpay.im/guide/getting-started#cli 重要提示 当下载证书后,屏显有几条证书信息,就在应用中配置certs几条,尤其是在新旧平台证书交替灰度时,需要把新旧证书都配上,应用才不会出现事故。
微信服务商,平台证书和商户证书临近过期,准备更换,用旧证书支付的订单,用新证书退款时,接口会报错用旧证书支付的订单,用新证书退款时,接口会报错:Cannot found the serial(`2F1FD771997824F7EF23048364450109B1A4F164`)'s configuration, which's from the response(header:Wechatpay-Serial), your's 11A1BBC92AB2ECA5DEAEF66D50F90542B2BF39A4 但是退款的钱却返回了? 请问更换证书,到底应该怎么更换?以前旧证书的订单,不能用新证书退款么?
02-10https://wechatpay.im/openapi/v2/secapi/mch/addsubdevconfig $instance->v2->secapi->mch->addsubdevconfig->postAsync([ 'security' => true, 'nonceless' => true, 'xml' => [ 'appid' => 'wx8888888888888888', 'mch_id' => '1900000109', 'sub_mch_id' => '1900000100', 'sub_appid' => 'wx931386123456789e', 'jsapi_path' => 'http://www.qq.com/wechat/', ], ]) ->then(static function(\Psr\Http\Message\ResponseInterface $response) { print_r(\WeChatPay\Transformer::toArray((string) $response->getBody())); }) ->wait();
接入特约商户配置下支付目录配置、绑定appid配置、配置查询三个接口,是用sdk吗有没有使用示例啊?接入特约商户配置下支付目录配置、绑定appid配置、配置查询三个接口,是用sdk吗有没有使用示例啊?https://pay.weixin.qq.com/wiki/doc/api/mch_bank.php?chapter=9_24_2&index=1&p=901
02-10发送 HTTP 请求 如果 SDK 未支持你需要的接口,你可以使用 OkHttpClientAdapter 的实现类发送 HTTP 请求,它会自动生成签名和验证签名。 发送请求步骤如下: 初始化 [代码]OkHttpClientAdapter[代码],建议使用 [代码]DefaultHttpClientBuilder[代码] 构建。构建请求 [代码]HttpRequest[代码]。调用 [代码]httpClient.execute[代码] 或者 [代码]httpClient.get[代码] 等方法来发送 HTTP 请求。[代码]httpClient.execute[代码] 支持发送 GET、PUT、POST、PATCH、DELETE 请求,也可以调用指定的 HTTP 方法发送请求。OkHttpClientAdapterTest 中演示了如何构造和发送 HTTP 请求。如果现有的 [代码]OkHttpClientAdapter[代码] 实现类不满足你的需求,可以继承 AbstractHttpClient 拓展实现。
wechatpay-java使用问题https://api.mch.weixin.qq.com/v3/fund-app/brand-redpacket/brand-merchant-batches,但微信官方sdk包中wechatpay-java,没有相关代码
02-101.00 会被解析成float类型,而实际那里需要integer类型
商家红包签名错误请求<xml> <act_name>312</act_name> <client_ip>182.150.31.211</client_ip> <mch_billno>A642AD1E04F07BF6E2D45AF9C</mch_billno> <mch_id>1635164438</mch_id> <nonce_str>F51ED55901DB5A9085C887A2D03E5BDE</nonce_str> <re_openid>o2Ubs654g8LEMt0ndM</re_openid> <remark>3121</remark> <send_name>21312</send_name> <total_amount>1.00</total_amount> <total_num>1</total_num> <wishing>3121</wishing> <wxappid>wx039ae269912314</wxappid> <sign>881758BB0CE4BA2B2931054B20478700</sign> </xml> 返回 <xml> <return_code> <![CDATA[SUCCESS]]> </return_code> <return_msg> <![CDATA[签名错误]]> </return_msg> <result_code> <![CDATA[FAIL]]> </result_code> <err_code> <![CDATA[SIGN_ERROR]]> </err_code> <err_code_des> <![CDATA[签名错误]]> </err_code_des> <mch_billno> <![CDATA[A642AD1E04F07BF6E2D45AF9C]]> </mch_billno> <mch_id> <![CDATA[1635164439]]> </mch_id> <wxappid> <![CDATA[wx039ae269912313]]> </wxappid> <re_openid> <![CDATA[o2Ubs654g8LEMt0ndM]]> </re_openid> <total_amount>1</total_amount> </xml> 私钥是对的,刚改过,顺序也是对的,也没有中文空格 咋回事了
2024-12-25AMEX像是美国运通信用卡,是不是涉歪果仁在华消费了?
付款码支付v3,返回输入源“(null)”映射到值字段“银行类型”字符串规则校验失败,字节数 22调用付款码支付v3接口,顾客实际扣款成功,微信账单中显示支付方式为[图片]。接口返回{"code":"PARAM_ERROR","detail":{"location":null,"value":22},"message":"输入源“(null)”映射到值字段“银行类型”字符串规则校验失败,字节数 22,大于最大值 16"},这个是什么原因?
2024-12-24// 从本地文件中加载「微信支付平台证书」,可由内置的CLI工具下载到,用来验证微信支付应答的签名 $platformCertificateFilePath = 'file:///path/to/wechatpay/certificate.pem'; $onePlatformPublicKeyInstance = Rsa::from($platformCertificateFilePath, Rsa::KEY_TYPE_PUBLIC); // 从本地文件中加载「微信支付平台公钥」,用来验证微信支付应答的签名 $platformPublicKeyFilePath = 'file:///path/to/wechatpay/publickey.pem'; $twoPlatformPublicKeyInstance = Rsa::from($platformPublicKeyFilePath, Rsa::KEY_TYPE_PUBLIC); 节选自 https://wechatpay.im/guide/getting-started#init ,注意看代码注释说明,文件有取的说明
微信支付平台证书或公钥文件certificate_or_publickey.pem路径?我们正在开发微信支付,生成二维码,但是私有证书有,但是公用的certificate_or_publickey.pem没有,这是为什么?
2024-12-24jre/jdk版本有要求,你的版本不支持
预下单支付一直报错Caused by: javax.crypto.AEADBadTagException: Tag mismatch! at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:578) at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1032) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:969) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:833) at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446) at javax.crypto.Cipher.doFinal(Cipher.java:2165) at com.wechat.pay.java.core.cipher.AbstractAeadCipher.decrypt(AbstractAeadCipher.java:78) [图片] 麻烦解答下
2024-12-13apiv2 需要加载 商户API私钥及证书 再发起退款请求
调用微信退款接口报错调用微信退款接口时,报错:javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
2024-12-12在电脑pc上走找回流程
法人/经营者证件资料待更新,电脑上不能操作更新怎么办?[图片][图片]
2024-12-09