欢迎光临
我们一直在努力

最新支付宝微信银联支付API调用封装C#源码,支付宝PC端扫码支付API封装功能等

一、源码介绍
1、支付宝电脑端扫码支付API封装
2、微信扫码支付API封装,生成微信支付的二维码地址
3、微信APP支付API封装
4、银联支付API封装
按照实例配置好各个API的参数即可。
//服务器异步通知页面路径
string notify_url = “”;
//页面跳转同步通知页面路径
string return_url = “”;
//商户订单号
string out_trade_no = DateTime.Now.ToString(“xxxxxx00001”);
//订单名称
string subject = “订单名称”;
//付款金额
string total_fee = “0.01”;
//订单描述
string body = “订单描述”;
//商品展示地址
string show_url = “http://www.bollshow.com”;
//防钓鱼时间戳
string anti_phishing_key = Genius.Payment.Alipay.Submit.Query_timestamp();
//客户端的IP地址
string exter_invoke_ip = “221.0.0.1”;
//非局域网的外网IP地址,如:221.0.0.1
//支付宝二维码支付
string sHtmlText = Genius.Payment.Alipay.Utils.SendRequest(out_trade_no, subject, body, total_fee, notify_url, return_url, show_url);
Response.Write(sHtmlText);
//微信支付url
Genius.Payment.WeiXinpay.QRUtils.SendRequest(out_trade_no,0.01m,”xxxxxxxxxx”, notify_url, return_url);
//银联支付
Genius.Payment.UnionPay.Utils.SendRequest(out_trade_no, 0.01m, “xxxxxxxxxx”, notify_url, return_url);
二、注意事项
1、开发环境为Visual Studio 2015,无数据库,使用.net 4.0开发。
2、需要各个支付的配置信息一次在config目录配置

[reply]链接: https://pan.baidu.com/s/13g0rZdy1_Vec6H1ZZ758yQ 密码: 6d4a[/reply]

赞(0) 打赏
未经允许不得转载:运维那些事 » 最新支付宝微信银联支付API调用封装C#源码,支付宝PC端扫码支付API封装功能等

评论 3

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    看看。。。。。

    解22345年前 (2020-10-26)回复
  2. #2

    发表评论

    111114年前 (2020-12-03)回复
  3. #3

    牛逼

    52ysxv65irej43年前 (2021-11-17)回复

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏