OrderPayService.java 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.zanxiang.sdk.service;
  2. import com.zanxiang.common.domain.ResultMap;
  3. import com.zanxiang.sdk.domain.bo.ProductPayParamBO;
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6. import java.io.IOException;
  7. /**
  8. * @author xufeng
  9. * @date 2022/6/8 15:31
  10. */
  11. public interface OrderPayService {
  12. /**
  13. * 订单支付
  14. *
  15. * @param product : 商品信息
  16. * @return : 返回接过参数
  17. */
  18. ResultMap payCreate(ProductPayParamBO product);
  19. /**
  20. * 支付异步回调
  21. *
  22. * @param request : 请求参数
  23. * @param response : 接过
  24. * @param payType : 支付类型
  25. * @return : 返回接过
  26. * @throws IOException : 异常
  27. */
  28. String notify(HttpServletRequest request, HttpServletResponse response, Integer payType) throws IOException;
  29. /**
  30. * 异步回调
  31. *
  32. * @param request : 请求参数
  33. * @param payType : 支付类型
  34. * @return : 回调结果
  35. */
  36. ResultMap synNotify(HttpServletRequest request, Integer payType);
  37. }