【请求地址】:https://apihk.mch.weixin.qq.com/v3/pay/transactions/jsapi
【请求数据】:{"appid":"xxx","mchid":"xxx","description":"xxxx","out_trade_no":"1854778999747444736","time_expire":"2024-11-08T14:57:28Z","notify_url":"https://xxx.xxx/app/payment/notify","amount":{"total":1,"currency":"HKD"},"payer":{"openid":"xxx"},"scene_info":{"payer_client_ip":"192.168.5.133"}}
【异常信息】:暂不支持境外支付
{"code":"INVALID_REQUEST","message":"暂不支持境外支付"}
v3支付接口,请问是不是有参数没有写全?
public class WxPayV3Req extends WxPayUnifiedOrderV3Request { @SerializedName(value = "trade_type") private String tradeType ; @SerializedName(value = "merchant_category_code") private String merchantCategoryCode ; } 这是我额外添加的v3支付参数
你商户号是境外商户的话就不支持调用国内接口
public class WxPayV3Req extends WxPayUnifiedOrderV3Request {
@SerializedName(value = "trade_type")
private String tradeType ;
@SerializedName(value = "merchant_category_code")
private String merchantCategoryCode ;
}
public class WxPayV3Req extends WxPayUnifiedOrderV3Request {
@SerializedName(value = "trade_type")
private String tradeType ;
@SerializedName(value = "merchant_category_code")
private String merchantCategoryCode ;
}