OrderPayService.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.zanxiang.sdk.service;
  2. import com.zanxiang.common.domain.ResultMap;
  3. import com.zanxiang.sdk.domain.bo.ProductPayParamBO;
  4. import org.jdom.JDOMException;
  5. import javax.servlet.http.HttpServletRequest;
  6. import javax.servlet.http.HttpServletResponse;
  7. import java.io.IOException;
  8. /**
  9. * @author xufeng
  10. * @date 2022/6/8 15:31
  11. */
  12. public interface OrderPayService {
  13. /**
  14. * 支付调起
  15. *
  16. * @param product : 调起支付的参数
  17. * @return : 返回支付参数
  18. */
  19. ResultMap create(ProductPayParamBO product);
  20. /**
  21. * 支付异步回调
  22. *
  23. * @param request : 回调请求
  24. * @param response : 回调返回
  25. * @return : 返回回调结果
  26. * @throws IOException : io异常
  27. * @throws JDOMException : 异常
  28. */
  29. String notify(HttpServletRequest request, HttpServletResponse response) throws IOException, JDOMException;
  30. /**
  31. * 支付同步回调
  32. *
  33. * @param request : 回调参数
  34. * @return : 返回回调结果
  35. */
  36. ResultMap synNotify(HttpServletRequest request);
  37. /**
  38. * 配置初始化
  39. *
  40. * @param obj : 配置参数
  41. */
  42. void configInit(String obj);
  43. }