public class Pay extends Object
Constructor and Description |
---|
Pay() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
close(QueryOrderIPO queryOrderIPO)
交易关闭接口
|
Object |
downloadbill(QueryOrderIPO queryOrderIPO)
下载对账单
|
Map<String,Object> |
getOrderInfo(PayOrderIPO payOrderIPO)
获取支付预订单信息
|
String |
getQrPay(PayOrderIPO payOrderIPO)
获取二维码信息
二维码支付
|
Map<String,Object> |
microPay(PayOrderIPO payOrderIPO)
刷卡付,pos主动扫码付款(条码付)
|
String |
payBack(Integer listId,
Map<String,String[]> parameterMap,
InputStream is)
支付回调地址
方式二
|
Map<String,Object> |
query(QueryOrderIPO queryOrderIPO)
查询
|
Map<String,Object> |
refund(Integer listId,
com.egzosn.pay.common.bean.RefundOrder order)
申请退款接口
|
Map<String,Object> |
refundquery(Integer listId,
com.egzosn.pay.common.bean.RefundOrder refundOrder)
查询退款
|
Map<String,Object> |
secondaryInterface(QueryOrderIPO queryOrderIPO,
com.egzosn.pay.common.bean.TransactionType transactionType)
通用查询接口,根据 TransactionType 类型进行实现,此接口不包括退款
|
String |
toPay(PayOrderIPO payOrderIPO)
跳到支付页面
针对实时支付,即时付款
|
byte[] |
toQrPay(PayOrderIPO payOrderIPO)
获取二维码图像
二维码支付
|
Map<String,Object> |
transfer(Integer listId,
com.egzosn.pay.common.bean.TransferOrder transferOrder)
转账
|
Map<String,Object> |
transferQuery(Integer listId,
String outNo,
String tradeNo)
转账查询
|
public String toPay(PayOrderIPO payOrderIPO)
payOrderIPO
- 商户支付订单信息public Map<String,Object> getOrderInfo(PayOrderIPO payOrderIPO)
payOrderIPO
- 商户支付订单信息public Map<String,Object> microPay(PayOrderIPO payOrderIPO)
payOrderIPO
- 商户支付订单信息public byte[] toQrPay(PayOrderIPO payOrderIPO) throws IOException
payOrderIPO
- 商户支付订单信息IOException
- IOExceptionpublic String getQrPay(PayOrderIPO payOrderIPO)
payOrderIPO
- 商户支付订单信息public String payBack(Integer listId, Map<String,String[]> parameterMap, InputStream is) throws IOException
listId
- 列表idparameterMap
- 请求参数is
- 请求流IOException
- IOException
拦截器相关增加, 详情查看PayService.addPayMessageInterceptor(PayMessageInterceptor)
业务处理在对应的PayMessageHandler里面处理,在哪里设置PayMessageHandler,详情查看PayService.setPayMessageHandler(com.egzosn.pay.common.api.PayMessageHandler)
PayMessageHandler
那么会使用默认的 DefaultPayMessageHandler
public Map<String,Object> query(QueryOrderIPO queryOrderIPO)
queryOrderIPO
- 订单的请求体public Map<String,Object> close(QueryOrderIPO queryOrderIPO)
queryOrderIPO
- 订单的请求体public Map<String,Object> refund(Integer listId, com.egzosn.pay.common.bean.RefundOrder order)
listId
- 列表idorder
- 订单的请求体public Map<String,Object> refundquery(Integer listId, com.egzosn.pay.common.bean.RefundOrder refundOrder)
listId
- 列表idrefundOrder
- 订单的请求体public Object downloadbill(QueryOrderIPO queryOrderIPO)
queryOrderIPO
- 订单的请求体public Map<String,Object> secondaryInterface(QueryOrderIPO queryOrderIPO, com.egzosn.pay.common.bean.TransactionType transactionType)
queryOrderIPO
- 订单的请求体transactionType
- 交易类型public Map<String,Object> transfer(Integer listId, com.egzosn.pay.common.bean.TransferOrder transferOrder)
listId
- 列表idtransferOrder
- 转账订单Copyright © 2022 Pivotal Software, Inc.. All rights reserved.