com.foxinmy.weixin4j.payment.mch
Class JSAPIPayRequest

java.lang.Object
  extended by com.foxinmy.weixin4j.payment.mch.AbstractPayRequest
      extended by com.foxinmy.weixin4j.payment.mch.JSAPIPayRequest
All Implemented Interfaces:
MchPayRequest

public class JSAPIPayRequest
extends AbstractPayRequest

公众号JS支付:get_brand_wcpay_request

get_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

Constructor Summary
JSAPIPayRequest(String prePayId, WeixinPayAccount payAccount)
           
 
Method Summary
 TradeType getPaymentType()
          支付类型
 PayRequest toRequestObject()
          支付请求对象
 String toRequestString()
          支付请求字符串
 
Methods inherited from class com.foxinmy.weixin4j.payment.mch.AbstractPayRequest
getPaymentAccount, getPrePayId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:


Copyright © 2014–2017. All rights reserved.