package com.dy.pipIrrWechat.wechatpay;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2024-07-15 10:26
|
* @LastEditTime 2024-07-15 10:26
|
* @Description
|
*/
|
public class PayInfo {
|
/**
|
* 小程序登录API
|
*/
|
public static String loginUrl = "https://api.weixin.qq.com/sns/jscode2session";
|
|
/**
|
* 检验登录态
|
*/
|
public static String checkSessionUrl = "https://api.weixin.qq.com/wxa/checksession";
|
|
/**
|
* 重置登录态
|
*/
|
public static String resetUserSessionKeyUrl = "https://api.weixin.qq.com/wxa/resetusersessionkey";
|
|
/**
|
* 获取接口调用凭据
|
*/
|
public static String tokenUrl = "https://api.weixin.qq.com/cgi-bin/token";
|
|
/**
|
* 统一下单API
|
*/
|
//public static String orderUrl = "https://api.mch.weixin.qq.com/pay/unifiedorder";
|
public static String orderUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";
|
|
/**
|
* 平台证书下载URL
|
*/
|
public static String certificates = "https://api.mch.weixin.qq.com/v3/certificates";
|
|
/**
|
* 支付结果通知API
|
*/
|
public static String notifyUrl = "https://44978f7456.imdo.co/wx/payment/orderNotify";
|
|
/*
|
* 查询订单API
|
*/
|
public static String queryUrl = "https://api.mch.weixin.qq.com/pay/orderquery";
|
|
/**
|
* 申请退款API
|
*/
|
public static String refundUrl = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";
|
|
/*
|
* 退款通知API
|
*/
|
public static String refundNotifyUrl = "https://www.muxiaobao.com/wxpay/pay.action";
|
|
/*
|
* 退款查询API
|
*/
|
public static String refundQueryUrl = "https://api.mch.weixin.qq.com/pay/refundquery";
|
|
/*
|
* 小程序唯一标识
|
*/
|
//public static String appid = "wxbc2b6a00dd904ead";
|
public static String appid = "wxf773810cd5643196";
|
|
/*
|
* 小程序的 app secret
|
*/
|
//public static String secret = "796ffe3e9921f756db0499e80d6ed0cd";
|
public static String secret = "080d4f947095551e988cfe9338e27f15";
|
|
/*
|
* 小程序的授权类型,登录凭证校验使用
|
*/
|
public static String grantType = "authorization_code";
|
|
/*
|
* 商户号(微信支付分配的商户号)
|
*/
|
public static String mchid = "1640721520";
|
|
/*
|
* 商户平台设置的密钥key
|
*/
|
public static String key = "DaYuJieShuiYanJiuYuan20230412ABC";
|
|
/**
|
* 商户API证书序列号
|
*/
|
public static String serial_no = "52D65AA66405C738670377F467178F4C950E1606";
|
|
/*
|
* 终端IP,调用微信支付API的机器IP
|
*/
|
public static String addrIp = "47.104.211.89";
|
|
/*
|
* 随机字符串,长度要求在32位以内
|
*/
|
//public static String nonceStr = PayHelper.generateRandomString();
|
|
/*
|
* 时间戳 从1970年1月1日00:00:00至今的秒数,即当前的时间
|
*/
|
//public static Long timeStamp = PayHelper.getTimeStamp();
|
|
/*
|
* 交易类型,小程序取值JSAPI
|
*/
|
public static String tradeType = "JSAPI";
|
|
/*
|
* 签名类型
|
*/
|
//public static String signType = "MD5";
|
public static String signType = "RSA";
|
|
/*
|
* 商品描述 商品简单描述,该字段请按照规范传递
|
*/
|
//public static String body = "大禹研究院-水费";
|
public static String description = "大禹研究院-水费";
|
|
/*
|
* 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用
|
*/
|
public static String attach = "天津";
|
|
/*
|
* 签名,参与签名参数:appid、attach、mch_id、nonce_str、body、out_trade_no、total_fee、spbill_create_ip、notify_url、trade_type、openid
|
*/
|
public String sign = "";
|
|
/**
|
* HTTP头认证类型
|
*/
|
public static String schema = "WECHATPAY2-SHA256-RSA2048";
|
|
/**
|
* 私钥文件路径
|
*/
|
public static String privateCertFileName = "C:\\webchat\\apiclient_key.pem";
|
|
public static String publicCertFileName = "C:\\webchat\\wxp_cert.pem";
|
|
/*
|
* 微信订单号,优先使用
|
*/
|
public static String transactionid = "";
|
|
/*
|
* 商户系统内部订单号
|
*/
|
public static String out_trade_no = "";
|
|
/*
|
* 商户退款单号
|
*/
|
public static String out_refund_no = "";
|
|
/*
|
* 退款金额
|
*/
|
public static Float refundfee;
|
|
/*
|
* 订单金额
|
*/
|
public static Float totalfee;
|
}
|