H5移动支付java demo,包含支付宝和微信,便宜了5元,可项目使用,可学习使用
本demo是手机网页h5支付demo,包含微信支付和支付宝支付,可用于项目或者学习,让您快速了解并使用两个主流支付接口,联系qq:851081305,白菜价5元
需要配置的文件
package com.pay.alipay; public class AlipayConfig { // 商户appid public static String APPID = ""; public static String URL = "https://openapi.alipay.com/gateway.do"; // 支付宝公钥 public static String ALIPAY_PUBLIC_KEY = ""; // 私钥 pkcs8格式的 public static String RSA_PRIVATE_KEY = ""; // 编码 public static String CHARSET = "UTF-8"; // 返回格式 public static String FORMAT = "json"; // RSA2 public static String SIGNTYPE = "RSA2"; }
package com.pay.wechatpay; public class WechatpayConfig { //获得公众号appid public static String appid = ""; //商户id public static String mch_id=""; //商户设置的key public static String key = ""; //微信支付证书存放路径 public static String apiclient_cert_path = ""; //例: /root/pay/apiclient_cert.p12 }
相关推荐
wuxiaobo 2020-11-06
QSmile 2020-09-17
jxkjliao 2020-09-02
迷彩 2020-06-09
weigenzongderoot 2020-04-30
hushijiao 2020-03-23
hushijiao 2020-01-18
guanheyu 2020-01-06
cindycinderella 2019-12-24
cindycinderella 2019-12-17
cindycinderella 2019-12-10
Molin 2019-11-18
hushijiao 2020-11-10
D先生 2020-05-31
迷彩 2020-05-29
hushijiao 2020-05-17
cindycinderella 2020-05-15