1.1.6 • Published 4 years ago

alipay_sdk2 v1.1.6

Weekly downloads
9
License
ISC
Repository
github
Last release
4 years ago

支付宝支付共有两种模式,这里支持的是支付宝推荐的公钥证书方式模式

安装

npm install alipay_sdk2

使用

源码有例子,可以下载源码查看使用方法。

typescript使用方法:

1、this.aliPay = new AliPayUtil( this.alipay_cert_sn, this.privateKeyPath );//初使化
2、this.aliPay.getPayCode( rsaSignParam );//生成APP支付字符串
3、this.aliPay.rsaCheck( req.body );//支付回调验签
详细使用方法查看 example/src/AliPay.ts

javascript使用方法

1、this.aliPay = new AliPayUtil_1.AliPayUtil( this.alipay_cert_sn, this.privateKeyPath );//初使化
2、this.aliPay.getPayCode( rsaSignParam );//生成APP支付字符串
3、this.aliPay.rsaCheck( req.body );//支付回调验签:
详细使用方法,查看项目编译生成的*.js文件 example/bin/AliPay.js

AliPayJavaSnTool用于生成三个证书序列号:

1、app_cert_sn
2、alipay_cert_sn
3、alipay_root_cert_sn

帮助文档 https://github.com/wujinhong/aliPay/raw/master/公钥证书方式模式.docx

作者邮箱:597785841@qq.com
由于github源码无法访问,中国大陆源码、帮助文档地址如下:
https://e.coding.net/wujinhong/open_source/alipay_sdk2.git

SDK https://www.npmjs.com/package/alipay_sdk2

开发

打开 WebStorm。

1.1.6

4 years ago

1.1.5

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago