IAliPayService.java 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package com.itstyle.modules.alipay.service;
  2. import com.itstyle.common.model.Product;
  3. /**
  4. * 扫码支付以及手机H5支付
  5. * 创建者 科帮网
  6. * 创建时间 2017年7月27日
  7. */
  8. public interface IAliPayService {
  9. /**
  10. * 阿里支付预下单
  11. * 如果你调用的是当面付预下单接口(alipay.trade.precreate),调用成功后订单实际上是没有生成,因为创建一笔订单要买家、卖家、金额三要素。
  12. * 预下单并没有创建订单,所以根据商户订单号操作订单,比如查询或者关闭,会报错订单不存在。
  13. * 当用户扫码后订单才会创建,用户扫码之前二维码有效期2小时,扫码之后有效期根据timeout_express时间指定。
  14. * @Author 科帮网
  15. * @param product
  16. * @return String
  17. * @Date 2017年7月27日
  18. * 更新日志
  19. * 2017年7月27日 科帮网 首次创建
  20. *
  21. */
  22. String aliPay(Product product);
  23. /**
  24. * 阿里支付退款
  25. * @Author 科帮网
  26. * @param product
  27. * @return String
  28. * @Date 2017年7月27日
  29. * 更新日志
  30. * 2017年7月27日 科帮网 首次创建
  31. *
  32. */
  33. String aliRefund(Product product);
  34. /**
  35. * 关闭订单
  36. * @Author 科帮网
  37. * @param product
  38. * @return String
  39. * @Date 2017年7月27日
  40. * 更新日志
  41. * 2017年7月27日 科帮网 首次创建
  42. *
  43. */
  44. String aliCloseorder(Product product);
  45. /**
  46. * 下载对账单
  47. * @Author 科帮网
  48. * @param billDate(账单时间:日账单格式为yyyy-MM-dd,月账单格式为yyyy-MM。)
  49. * @param billType(trade、signcustomer;trade指商户基于支付宝交易收单的业务账单;signcustomer是指基于商户支付宝余额收入及支出等资金变动的帐务账单;)
  50. * @return String
  51. * @Date 2017年7月27日
  52. * 更新日志
  53. * 2017年7月27日 科帮网 首次创建
  54. *
  55. */
  56. String downloadBillUrl(String billDate,String billType);
  57. /**
  58. * 手机支付返回一个form表单 然后调用方刷新到H5页面
  59. * @Author 科帮网
  60. * @param product
  61. * @return String
  62. * @Date 2017年7月27日
  63. * 更新日志
  64. * 2017年7月27日 科帮网 首次创建
  65. * 备注:人民币单位为分
  66. * attach 附件参数 使用json格式传递 用于回调区分
  67. */
  68. String aliPayMobile(Product product);
  69. }