Socket
Socket
Sign inDemoInstall

paypal-webapi

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypal-webapi

README.md


Version published
Maintainers
1
0

Weekly downloads

Readme

Source

Paypal-webapi

这里获取了部分代码,然后进行了一些封装。

install

npm install paypal-webapi

How to use

var Paypal = require("paypal-webapp");
var paypal = new Paypal();
paypal.init(clientid,secret);
//{total:10,currency:"USD",detail:"megeg"}
paypal.createPayment(data,cb);//创建订单
paypal.checkPayment(data,cb);//check订单

Notices

only 4 linux

流程图

Client		Your Server					Paypal Server
	|			|							|
	|			|---- getAccessToken------->|
	|			|							|
	|			|<----------accessToken-----|
	|--buy----->|							|
	|			|-------createPayment------>|
	|			|							|
	|			|<------returPaymentinfo----|
	|<--payuri--|							|
	|			|							|
	|------------deal the payment---------->|
	|			|							|
	|			|<--------payment orderid---|
	|			|							|
	|			|-------check payment------>|
	|			|							|
	|			|<------payment info -------|

Keywords

FAQs

Last updated on 27 Aug 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc