新增toPay方法,以便于简化跳转支付;对支付对接地址抽象出接口方法

This commit is contained in:
egan
2019-04-15 23:52:20 +08:00
parent 0ebb5e48f6
commit c5ce9edf1f
12 changed files with 124 additions and 100 deletions

View File

@@ -29,6 +29,10 @@ public class PayOrder {
* 价格
*/
private BigDecimal price;
/**
* 支付平台订单号,交易号
*/
private String tradeNo;
/**
* 商户订单号
*/
@@ -122,24 +126,18 @@ public class PayOrder {
}
/**
* 获取商户订单
* @return 商户订单
* @see #getOutTradeNo()
* 支付平台订单号,交易
* @return 支付平台订单号,交易
*/
@Deprecated
public String getTradeNo() {
return outTradeNo;
return tradeNo;
}
/**
*
* @param tradeNo 商户订单
* @see #setOutTradeNo(String)
* 支付平台订单号,交易号
* @param tradeNo 支付平台订单号,交易
*/
@Deprecated
public void setTradeNo(String tradeNo) {
this.outTradeNo = tradeNo;
this.tradeNo = tradeNo;
}
/**