@mobileforming2/alipay-sdk
蚂蚁金服开放平台 node sdk
Last updated 8 months ago by bainfu .
ISC · Bugs · Original npm · Tarball · package.json
$ cnpm install @mobileforming2/alipay-sdk 
SYNC missed versions from official npm registry.

Alipay SDK

蚂蚁金服开放平台 SDK

NPM version build status Test coverage

安装

npm install alipay-sdk

使用

// TypeScript
import AlipaySdk from 'alipay-sdk';

const alipaySdk = new AlipaySdk({
  // 参考下方 SDK 配置
  appId: '2016123456789012',
  privateKey: fs.readFileSync('./private-key.pem', 'ascii'),
});

const result = await alipaySdk.exec('alipay.system.oauth.token', {
	grantType: 'authorization_code',
	code: 'code',
	refreshToken: 'token'
});

Demo:

Current Tags

  • 3.0.10                                ...           latest (8 months ago)

2 Versions

  • 3.0.10                                ...           8 months ago
  • 3.0.9                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |