wechatpay-apiv3/wechatpay-java

JsapiServiceExtension的prepayWithRequestPayment预下单接口

leonlei opened this issue · 2 comments

错误描述

public PrepayWithRequestPaymentResponse prepayWithRequestPayment(
PrepayRequest request, String requestPaymentAppid) 这个方法有两个参数,示例代码只有一个request一个参数

重现bug的步骤

JsapiServiceExtension源代码里面

预期行为

第二个参数实际上应该就是request里面的appId吧

导致错误的代码片段

No response

操作系统

macOs

Java 版本

java8

wechatpay-java 版本

0.2.12

其他信息

No response

你应该指的是服务商模式 ?

服务商模式下,调起支付可能是在服务商的页面或者小程序(对应 request 中的 appid),也有可能在子商户的页面或者小程序(对应 sub_appid)。

所以,单独了一个参数让调用方传进来。