Nine Parsecs from Milwaukee

    @paypal/funding-components

    1.0.28 • Public • Published

    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

    Install

    npm i @paypal/funding-components

    DownloadsWeekly Downloads

    850

    Version

    1.0.28

    License

    Apache-2.0

    Unpacked Size

    31.8 kB

    Total Files

    20

    Last publish

    Collaborators

    • avathalurin
    • yanisimov_paypal
    • wsbrunson
    • rosman21
    • sdk-integrations-npm
    • karthickpp
    • westeezy
    • sioked
    • hlahlou
    • bladebarringer
    • braintree
    • rajarampadmanathan
    • joshbeam
    • zhillb
    • weihou
    • seavenly
    • rpalanikumar
    • merlinpatt
    • jfurman
    • ravishekhar00
    • visheei94
    • gregjopa
    • mstuart
    • antre
    • mnicpt
    • elizabethmv
    • nbierdeman
    • chetanjk
    • remotevision
    • dturgumbaev
    • rygilbert_paypal