Socket
Book a DemoInstallSign in
Socket

alipay_sdk2

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alipay_sdk2

支付宝推荐的公钥证书方式模式SDK

1.1.6
latest
Source
npmnpm
Version published
Weekly downloads
42
4100%
Maintainers
1
Weekly downloads
 
Created
Source

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

安装

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。

Keywords

alipay

FAQs

Package last updated on 24 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.