You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unity e1fa0638e2 init 9 months ago
..
Domain init 9 months ago
Jayrock init 9 months ago
Parser init 9 months ago
Request init 9 months ago
Response init 9 months ago
Test init 9 months ago
Util init 9 months ago
AlipayConstants.cs init 9 months ago
AlipayMobilePublicMultiMediaClient.cs init 9 months ago
AlipayMobilePublicMultiMediaDownloadRequest.cs init 9 months ago
AlipayMobilePublicMultiMediaDownloadResponse.cs init 9 months ago
AopDictionary.cs init 9 months ago
AopException.cs init 9 months ago
AopObject.cs init 9 months ago
AopResponse.cs init 9 months ago
DefaultAopClient.cs init 9 months ago
IAopClient.cs init 9 months ago
IAopRequest.cs init 9 months ago
IAopUploadRequest.cs init 9 months ago
ResponseParseItem.cs init 9 months ago
SignItem.cs init 9 months ago
readme.txt init 9 months ago

readme.txt

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

            ╭───────────────────────╮
    ────┤           支付宝代码示例结构说明             ├────
            ╰───────────────────────╯ 
                                                                   
	 Visual studio 版本2010
	 Framework3.5以上版本
         版    权:支付宝(中国)网络技术有限公司

─────────
 1、主要类文件功能说明
─────────
┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
DefaultAopClient.cs

public DefaultAopClient(string serverUrl, string appId, string privateKeyPem)
功能:构造方法
输入serverUrl 非空请求服务器地址调试http://openapi.alipaydev.com/gateway.do 线上https://openapi.alipay.com/gateway.do 
      appId 非空应用ID
      privateKeyPem 非空,私钥
输出:调用客户端实例对象


public T Execute<T>(IAopRequest<T> request) where T : AopResponse
功能:执行请求调用(适用于不需要授权接口调用)
输入request 接口请求对象
输出T 请求返回对象。

public T Execute<T>(IAopRequest<T> request, string accessToken) where T : AopResponse
功能:执行请求调用(适用于需要授权接口调用)
输入request 接口请求对象
      accessToken 授权令牌
输出T 请求返回对象。

─────────
 2、调用示例
─────────
┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
请参考: Aop.Api.Test.PublicTest.cs

┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉

─────────
 3、签名相关类
─────────
┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉

Aop.Api.Util.AlipaySignature.cs

public static string RSASign(IDictionary<string, string> parameters, string privateKeyPem)
功能RSA签名
输入parameters 待签名参数map
      privateKeyPem 私钥
输出:签名结果

public static bool RSACheckV2(IDictionary<string, string> parameters, string publicKeyPem)
功能RSA验签
输入parameters 签名参数内容map
      publicKeyPem 公钥
输出:验签结果

public static bool RSACheckContent(string signContent, string sign, string publicKeyPem)
功能RSA验签
输入signContent 签名参数内容字符串
      sign 签名
      publicKeyPem 公钥
输出:验签结果

┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉