| | |
| | | import com.ks.vip.pojo.DO.VipOrder; |
| | | import com.ks.vip.pojo.DTO.PayWayInfoDTO; |
| | | import com.ks.vip.pojo.DTO.VipOrderDTO; |
| | | import org.yeshi.utils.exception.WXPayException; |
| | | |
| | | import java.util.Map; |
| | | |
| | | public interface VipOrederPayService { |
| | | |
| | |
| | | * @param t |
| | | * @throws VipOrderException |
| | | */ |
| | | public PayWayInfoDTO addOrderWithPay(VipOrderDTO t, String notifyUrl, String returnUrl) throws VipOrderException; |
| | | |
| | | public PayWayInfoDTO addOrderWithPay(VipOrderDTO t, String notifyUrl, String returnUrl,String ip) throws VipOrderException; |
| | | |
| | | /** |
| | | * 订单支付 |
| | | * |
| | | * 创建支付订单 |
| | | * @param ip |
| | | * @param order |
| | | * @param notifyUrl |
| | | * @param returnUrl |
| | | * @return |
| | | * @throws OrderPayException |
| | | */ |
| | | public PayWayInfoDTO payOrder(VipOrder order, String notifyUrl, String returnUrl) throws OrderPayException; |
| | | public PayWayInfoDTO payOrder( VipOrder order, String notifyUrl, String returnUrl,String ip) throws OrderPayException; |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | public VipOrder checkOrderPayState(Long id); |
| | | |
| | | |
| | | /** |
| | | * 获取微信支付成功的订单号 |
| | | * @param notifyContent |
| | | * @return |
| | | */ |
| | | public String getWXPaySuccessOutOrderNo(String notifyContent) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 获取支付宝支付成功的订单号 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | public String getAlipayPaySuccessOutOrderNo(Map<String, String> params) throws Exception; |
| | | } |