1.0.32 • Published 5 months ago

@paypal/funding-components v1.0.32

Weekly downloads
412
License
Apache-2.0
Repository
github
Last release
5 months ago

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
1.0.32-alpha.2

6 months ago

1.0.32-alpha.1

6 months ago

1.0.32-alpha.5

5 months ago

1.0.32-alpha.4

6 months ago

1.0.32-alpha.3

6 months ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.29

2 years ago

1.0.30

2 years ago

1.0.28

2 years ago

1.0.26

2 years ago

1.0.27

2 years ago

1.0.26-alpha.1

2 years ago

1.0.25-alpha.1

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago