All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.rwocj.wx.pay.core.HttpServletRequestWxHeaders Maven / Gradle / Ivy

There is a newer version: 0.8-javax
Show newest version
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