Class JSAPIPayRequest
- java.lang.Object
-
- com.foxinmy.weixin4j.pay.payment.mch.AbstractPayRequest
-
- com.foxinmy.weixin4j.pay.payment.mch.JSAPIPayRequest
-
- All Implemented Interfaces:
MchPayRequest
public class JSAPIPayRequest extends AbstractPayRequest
公众号JS支付:get_brand_wcpay_requestget_brand_wcpay_request:ok 支付成功
get_brand_wcpay_request:cancel 支付过程中用户取消
get_brand_wcpay_request:fail 支付失败- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
PrePay
,PayRequest
, 网页端调起支付API
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.pay.payment.mch.AbstractPayRequest
weixinSignature
-
-
Constructor Summary
Constructors Constructor Description JSAPIPayRequest(String prePayId, WeixinPayAccount payAccount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeType
getPaymentType()
支付类型PayRequest
toRequestObject()
支付请求对象String
toRequestString()
支付请求字符串-
Methods inherited from class com.foxinmy.weixin4j.pay.payment.mch.AbstractPayRequest
getPaymentAccount, getPrePayId
-
-
-
-
Constructor Detail
-
JSAPIPayRequest
public JSAPIPayRequest(String prePayId, WeixinPayAccount payAccount)
-
-
Method Detail
-
getPaymentType
public TradeType getPaymentType()
Description copied from interface:MchPayRequest
支付类型- Returns:
-
toRequestObject
public PayRequest toRequestObject()
Description copied from interface:MchPayRequest
支付请求对象- Returns:
-
toRequestString
public String toRequestString()
Description copied from interface:MchPayRequest
支付请求字符串- Returns:
-
-