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

paypal-express-checkout-es6

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypal-express-checkout-es6

nodejs library for paypal express checkout api support

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

paypal-express-checkout

Nodejs library for paypal express checkout

Note: Full documentation is not ready yet. Please take a look at code. It will make sense because it is with flow types.

Building

gulp build

Usage

Basic usage

All functions basically uses call function to send API request.

For reference please refer to https://developer.paypal.com/docs/classic/express-checkout/

import Paypal from 'paypal-express-checkout-es6';

const config = {
  USER,
  PWD,
  SIGNATURE,
  isSandbox
};

const paypal = new Paypal(config);

paypal.call(method, params);

Sample (one time checkout)

paypal.call('SetExpressCheckout', {
  PAYMENTREQUEST_0_PAYMENTACTION: 'SALE', // type of payment
  PAYMENTREQUEST_0_AMT: 19.95, // amount of transaction
  PAYMENTREQUEST_0_CURRENCYCODE: 'USD', // currency of transaction
  RETURNURL: 'http://www.example.com/success.html', // URL of your payment confirmation page
  CANCELURL: 'http://www.example.com/cancel.html'// URL redirect if customer cancels payment
});

Parallel Payment

These functions are available for parallel payment.

  • setExpressCheckout
  • doExpressCheckoutPayment
  • getExpressCheckoutDetails

Reference Transactions

  • getReferenceAuthToken
  • createBillingAgreement
  • doReferenceTransaction

Keywords

FAQs

Package last updated on 15 Jul 2016

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