Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alipay-webpay-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alipay-webpay-sdk

nodejs alipay 'alipay.trade.page.pay' sdk

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

alipay-webpay-sdk

支付宝nodejs版网页扫码sdk

usage
npm install alipay-webpay-sdk --save


//	ES6

import AliPayClient from "alipay-webpay-sdk";

//	ES5

const AliPayClient = require("alipay-webpay-sdk");

//	实例化
const alipay = new AliPayClient({见实例化参数列表});

实例化参数列表
参数名意义/类型必须默认值
appId应用id/StringN/A
url支付宝网关地址/StringN/A
notifyUri同异步通知地址, 包含async(异步)和sync(两个属性)/ObjectN/A
publicKey支付宝公钥/StringN/A
privatekey支付宝私钥/StringN/A
signType签名类型, RSA类型的还没做支持/StringRSA2
charset提交字符集utf-8
API
方法名意义
alipay.pay({见apipay.pay参数})创建网页扫码支付的表单
alipay.verifySign(支付宝返回的请求主体)验证支付宝签名
apipay.pay参数列表
参数名意义/类型必须默认值
outTradeNo内部订单号, 请求支付宝网页支付之前, 应该自己先生成一个内部订单号/StringN/A
subject订单标题/StringN/A
body订单描述/String""
productCode产品编码/StringFAST_INSTANT_TRADE_PAY
totalAmount订单总价, 分为单位/NumberN/A

Keywords

FAQs

Package last updated on 08 Dec 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc