@Controller
@RequestMapping(value="tradePayment")
public class TradePaymentController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private AlipayGatewayComponent |
alipayGatewayComponent |
protected ConfigDataComponent |
configDataComponent |
private PaymentGatewayComponent |
gatewayComponent |
private TradePaymentHistoryService |
historyService |
protected org.apache.commons.logging.Log |
log |
private PaymentProcessorComponent |
paymentProcessorComponent |
private TradeRefundService |
refundService |
protected SafeConfigComponent |
safeConfigComponent |
private TradePaymentService |
service |
private PaymentProcessorComponent |
tradePaymentProcessorComponent |
private WechatGatewayComponent |
wechatGatewayComponent |
构造器和说明 |
---|
TradePaymentController() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
cancel(SysSite site,
java.lang.Long paymentId,
java.lang.String returnUrl,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes model) |
java.lang.String |
cancel(SysSite site,
SysUser user,
long refundId,
java.lang.String returnUrl,
javax.servlet.http.HttpServletRequest request) |
java.lang.String |
notifyAlipay(SysSite site,
long out_trade_no,
java.lang.String total_amount,
java.lang.String trade_no,
javax.servlet.http.HttpServletRequest request) |
java.util.Map<java.lang.String,java.lang.String> |
notifyWechat(SysSite site,
java.lang.String signature,
java.lang.String timestamp,
java.lang.String nonce,
java.lang.String serial,
java.lang.String body) |
java.lang.String |
pay(SysSite site,
java.lang.Long paymentId,
java.lang.String paymentType,
java.lang.String returnUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.web.servlet.mvc.support.RedirectAttributes model) |
java.lang.String |
refund(SysSite site,
SysUser user,
TradeRefund entity,
java.lang.String returnUrl,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes model) |
protected final org.apache.commons.logging.Log log
private PaymentProcessorComponent tradePaymentProcessorComponent
private PaymentProcessorComponent paymentProcessorComponent
private PaymentGatewayComponent gatewayComponent
private WechatGatewayComponent wechatGatewayComponent
private AlipayGatewayComponent alipayGatewayComponent
protected ConfigDataComponent configDataComponent
protected SafeConfigComponent safeConfigComponent
private TradeRefundService refundService
private TradePaymentHistoryService historyService
private TradePaymentService service
@RequestMapping(value="pay") public java.lang.String pay(@RequestAttribute SysSite site, java.lang.Long paymentId, java.lang.String paymentType, java.lang.String returnUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
site
- paymentId
- paymentType
- returnUrl
- request
- response
- model
- @RequestMapping(value="cancel") public java.lang.String cancel(@RequestAttribute SysSite site, java.lang.Long paymentId, java.lang.String returnUrl, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
site
- paymentId
- returnUrl
- request
- model
- @RequestMapping(value="notify/alipay") @ResponseBody public java.lang.String notifyAlipay(@RequestAttribute SysSite site, long out_trade_no, java.lang.String total_amount, java.lang.String trade_no, javax.servlet.http.HttpServletRequest request)
site
- out_trade_no
- total_amount
- trade_no
- request
- @RequestMapping(value="notify/wechat") @ResponseBody public java.util.Map<java.lang.String,java.lang.String> notifyWechat(@RequestAttribute SysSite site, @RequestHeader(value="Wechatpay-Signature") java.lang.String signature, @RequestHeader(value="Wechatpay-Timestamp") java.lang.String timestamp, @RequestHeader(value="Wechatpay-Nonce") java.lang.String nonce, @RequestHeader(value="Wechatpay-Serial") java.lang.String serial, @RequestBody java.lang.String body)
site
- signature
- timestamp
- nonce
- serial
- body
- @RequestMapping(value="refund") public java.lang.String refund(@RequestAttribute SysSite site, @SessionAttribute SysUser user, TradeRefund entity, java.lang.String returnUrl, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
site
- user
- entity
- returnUrl
- request
- model
- @RequestMapping(value="cancelRefund") public java.lang.String cancel(@RequestAttribute SysSite site, @SessionAttribute SysUser user, long refundId, java.lang.String returnUrl, javax.servlet.http.HttpServletRequest request)
site
- 站点user
- 用户refundId
- 退款idreturnUrl
- 重定向页面地址request
-