Socket
Socket
Sign inDemoInstall

@paypal/funding-components

Package Overview
Dependencies
10
Maintainers
22
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paypal/funding-components

PayPal Funding Components.


Version published
Weekly downloads
295
decreased by-17.6%
Maintainers
22
Install size
2.17 MB
Created
Weekly downloads
 

Readme

Source

PayPal Funding Components

build status code coverage npm version apache license

PayPal JavaScript SDK module to deal with funding sources and eligibility.

Remember a funding source from the client-side

Note: your client-id and domain must be approved to call this function

paypal.rememberFunding([ paypal.FUNDING.VENMO ]);

Remember a funding source from the server-side

import { rememberFunding } from '@paypal/funding-components';
import { FUNDING } from '@paypal/sdk-constants';

rememberFunding(req, res, [ FUNDING.VENMO ]);

Check a remembered funding source from the server-side

import { isFundingRemembered } from '@paypal/funding-components';
import { FUNDING } from '@paypal/sdk-constants';

if (isFundingRemembered(req, FUNDING.VENMO)) {
    // ...
}

Pass in a custom set of cookies:

isFundingRemembered(req, FUNDING.VENMO, { cookies })

Quick Start

Installing
npm install --save @paypal/funding-components
Getting Started
  • Fork the module
  • Run setup: npm run setup
  • Start editing code in ./src and writing tests in ./tests
  • npm run build
Building
npm run build
Tests
  • Edit tests in ./test/tests

  • Run the tests:

    npm test
    

Keywords

FAQs

Last updated on 05 Apr 2023

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