package com.starry.admin.common.play.wx;

/**
 * 位置支付常量
 *
 * @author admin
 */
public class WeChatConstants {

    public enum SignType {
        MD5, HMACSHA256
    }

    public static final String FIELD_SIGN = "sign";

    /**
     * 支付成功回调地址
     */
    public static String NOTIFY_URL = "https://july.hucs.top/api/wx/pay/jsCallback";


    /**
     * 支付证书路径
     */
    public static String PAY_CERT_LOC = "C:\\CTO\\java\\apache-tomcat-8.0.50\\wxcert\\";

    /**
     * 微信 trade_type 参数
     */
    public static final String TRADE_TYPE_JSAPI = "JSAPI";// JSAPI支付  例如 : 直接调用微信支付
    public static final String TRADE_TYPE_NATIVE = "NATIVE";// Native支付  例如 : 扫码支付

    /**
     * 统一下单
     */
    public static String UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    /**
     * 订单支付状态查询
     */
    public static String ORDERQUERY_URL = "https://api.mch.weixin.qq.com/pay/orderquery";
    /**
     * 退款
     */
    public static String REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
    /**
     * 提现
     */
    public static String TRANSFERS_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";

}