{"id":19888915,"url":"https://github.com/paypal/paypal-funding-components","last_synced_at":"2026-03-15T05:07:17.393Z","repository":{"id":38419155,"uuid":"189141682","full_name":"paypal/paypal-funding-components","owner":"paypal","description":"PayPal JavaScript SDK Funding Components","archived":false,"fork":false,"pushed_at":"2023-12-19T16:32:55.000Z","size":112,"stargazers_count":20,"open_issues_count":9,"forks_count":50,"subscribers_count":23,"default_branch":"main","last_synced_at":"2024-04-13T19:27:17.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paypal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null}},"created_at":"2019-05-29T03:09:53.000Z","updated_at":"2024-03-14T04:50:07.000Z","dependencies_parsed_at":"2023-02-18T02:15:54.397Z","dependency_job_id":"f132ef86-4883-4966-949e-790825f0ad13","html_url":"https://github.com/paypal/paypal-funding-components","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-funding-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-funding-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-funding-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-funding-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paypal","download_url":"https://codeload.github.com/paypal/paypal-funding-components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224324456,"owners_count":17292521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T18:08:38.418Z","updated_at":"2026-03-15T05:07:12.372Z","avatar_url":"https://github.com/paypal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"PayPal Funding Components\n-------------------------\n\n\n[![build status][build-badge]][build]\n[![code coverage][coverage-badge]][coverage]\n[![npm version][version-badge]][package]\n[![apache license][license-badge]][license]\n\n[build-badge]: https://img.shields.io/github/actions/workflow/status/paypal/paypal-funding-components/main.yml?branch=main\u0026logo=github\u0026style=flat-square\n[build]: https://github.com/paypal/paypal-funding-components/actions?query=workflow%3Abuild\n[coverage-badge]: https://img.shields.io/codecov/c/github/paypal/paypal-funding-components.svg?style=flat-square\n[coverage]: https://codecov.io/github/paypal/paypal-funding-components/\n[version-badge]: https://img.shields.io/npm/v/@paypal/funding-components.svg?style=flat-square\n[package]: https://www.npmjs.com/package/@paypal/funding-components\n[license-badge]: https://img.shields.io/npm/l/@paypal/funding-components.svg?style=flat-square\n[license]: https://github.com/paypal/paypal-funding-components/blob/main/LICENSE\n\nPayPal JavaScript SDK module to deal with funding sources and eligibility.\n\n## Remember a funding source from the client-side\n\nNote: your client-id and domain must be approved to call this function\n\n```javascript\npaypal.rememberFunding([ paypal.FUNDING.VENMO ]);\n```\n\n## Remember a funding source from the server-side\n\n```javascript\nimport { rememberFunding } from '@paypal/funding-components';\nimport { FUNDING } from '@paypal/sdk-constants';\n\nrememberFunding(req, res, [ FUNDING.VENMO ]);\n```\n\n## Check a remembered funding source from the server-side\n\n```javascript\nimport { isFundingRemembered } from '@paypal/funding-components';\nimport { FUNDING } from '@paypal/sdk-constants';\n\nif (isFundingRemembered(req, FUNDING.VENMO)) {\n    // ...\n}\n```\n\nPass in a custom set of cookies:\n\n```javascript\nisFundingRemembered(req, FUNDING.VENMO, { cookies })\n```\n\n\nQuick Start\n-----------\n\n#### Installing\n\n```bash\nnpm install --save @paypal/funding-components\n```\n\n#### Getting Started\n\n- Fork the module\n- Run setup: `npm run setup`\n- Start editing code in `./src` and writing tests in `./tests`\n- `npm run build`\n\n#### Building\n\n```bash\nnpm run build\n```\n\n#### Tests\n\n- Edit tests in `./test/tests`\n- Run the tests:\n\n  ```bash\n  npm test\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaypal%2Fpaypal-funding-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaypal%2Fpaypal-funding-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaypal%2Fpaypal-funding-components/lists"}