io.gitee.putaoo.easypay.service.PaymentService Maven / Gradle / Ivy
package io.gitee.putaoo.easypay.service;
import io.gitee.putaoo.easypay.constant.PayChannel;
import io.gitee.putaoo.easypay.domain.*;
import javax.servlet.http.HttpServletRequest;
public interface PaymentService {
/**
* 创建app支付订单
* @param request
* @param channel
* @return
*/
AppPayResponse create4app(AppPayRequest request, PayChannel channel);
/**
* 查询订单
* @param request
* @return
*/
FindOrderResponse find(FindOrderRequest request, PayChannel channel);
/**
* 关闭交易
* @param request
* @return
*/
CloseOrderResponse close(CloseOrderRequest request, PayChannel channel);
/**
* 退款
* @param request
* @return
*/
RefundResponse refund(RefundRequest request, PayChannel channel);
/**
* 退款查询
* @param request
* @return
*/
FindRefundResponse findRefund(FindRefundRequest request, PayChannel channel);
/**
* 第三方支付回调
*/
CallbackResponse callback(HttpServletRequest request, PayChannel channel);
}