top.rwocj.wx.pay.core.HttpServletRequestWxHeaders Maven / Gradle / Ivy
package top.rwocj.wx.pay.core;
import jakarta.servlet.http.HttpServletRequest;
public class HttpServletRequestWxHeaders implements WxHeaders {
private final HttpServletRequest request;
public HttpServletRequestWxHeaders(HttpServletRequest request) {
this.request = request;
}
@Override
public String getWechatpaySerial() {
return request.getHeader(WECHATPAY_SERIAL);
}
@Override
public String getWechatpaySignature() {
return request.getHeader(WECHATPAY_SIGNATURE);
}
@Override
public String getWechatpayTimestamp() {
return request.getHeader(WECHATPAY_TIMESTAMP);
}
@Override
public String getWechatpayNonce() {
return request.getHeader(WECHATPAY_NONCE);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy