本文实例为大家分享了C#支付宝扫码支付示的具体代码,供大家参考,具体内容如下
支付宝工具类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;
namespace ZK_ECommerce.Shop.pay.alipay
{
public class AliPa
本文实例为大家分享了C#支付宝新版支付请求接口调用的具体代码,供大家参考,具体内容如下
因为支付宝已经集成了完整的SDK,所以可以使用SDK直接调用API,这里获取SDK源码。
首先我们需要引用支付宝SDK集成 AopSdk.dll。
添加相关引用:
using Aop.Api;
using Aop.Api.Domain;
using Aop.Api.Request;
using Aop.Api.Response;
需要用到商户私钥,支付宝公钥,请求地址等公共参数,所以可以新建一个config