WxUserPayService.java 975 B

123456789101112131415161718192021222324252627282930
  1. package beilv.pay.service;
  2. import com.wechat.pay.java.service.payments.jsapi.model.PrepayWithRequestPaymentResponse;
  3. import com.wechat.pay.java.service.payments.model.Transaction;
  4. import com.wechat.pay.java.service.refund.model.Refund;
  5. import com.wechat.pay.java.service.refund.model.RefundNotification;
  6. import javax.servlet.http.HttpServletRequest;
  7. public interface WxUserPayService {
  8. // 微信支付
  9. PrepayWithRequestPaymentResponse creationIndentPayment(String indentId, String myOpenId, Double amount);
  10. // 获取支付回调信息
  11. Transaction getTransaction(HttpServletRequest request);
  12. // 支付回调
  13. boolean indentPaymentBlack(Transaction transaction);
  14. // 退款申请
  15. Refund refundIndentPayment(String refundId, Double amount);
  16. // 获取退款回调信息
  17. RefundNotification getRefundNotification(HttpServletRequest request);
  18. // 退款回调
  19. boolean refundIndentBlack(RefundNotification refundNotification);
  20. }