0.1.0 • Published 10 years ago

paypal-webapi v0.1.0

Weekly downloads
5
License
ISC
Repository
github
Last release
10 years ago

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 -------|
0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago