{"id":19888951,"url":"https://github.com/paypal/paypal-messaging-components","last_synced_at":"2025-04-12T18:54:29.609Z","repository":{"id":37502897,"uuid":"189062216","full_name":"paypal/paypal-messaging-components","owner":"paypal","description":"PayPal JavaScript SDK - messaging components","archived":false,"fork":false,"pushed_at":"2025-04-01T21:46:13.000Z","size":336303,"stargazers_count":36,"open_issues_count":6,"forks_count":60,"subscribers_count":30,"default_branch":"develop","last_synced_at":"2025-04-01T22:24:26.917Z","etag":null,"topics":["credit","financing","messaging","paypal"],"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":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-28T16:10:52.000Z","updated_at":"2025-04-01T21:46:18.000Z","dependencies_parsed_at":"2022-07-20T00:02:41.017Z","dependency_job_id":"a99a0d5d-1de0-46fd-a7c7-950f9ed0a1e9","html_url":"https://github.com/paypal/paypal-messaging-components","commit_stats":{"total_commits":695,"total_committers":27,"mean_commits":25.74074074074074,"dds":0.8043165467625899,"last_synced_commit":"f1bbb80cb72df835bef4b3d72ab290193d73a600"},"previous_names":[],"tags_count":189,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-messaging-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-messaging-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-messaging-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fpaypal-messaging-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paypal","download_url":"https://codeload.github.com/paypal/paypal-messaging-components/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618262,"owners_count":21134200,"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":["credit","financing","messaging","paypal"],"created_at":"2024-11-12T18:08:43.251Z","updated_at":"2025-04-12T18:54:29.581Z","avatar_url":"https://github.com/paypal.png","language":"JavaScript","funding_links":["https://developer.paypal.com/docs/business/pay-later/integrate/"],"categories":[],"sub_categories":[],"readme":"# PayPal Credit Messaging\n\n---\n\n[![Compare Snapshots](https://github.com/paypal/paypal-messaging-components/actions/workflows/snapshotCompare.yml/badge.svg)](https://github.com/paypal/paypal-messaging-components/actions/workflows/snapshotCompare.yml) [![dependencies Status](https://david-dm.org/paypal/paypal-messaging-components/status.svg)](https://david-dm.org/paypal/paypal-messaging-components) [![devDependencies Status](https://david-dm.org/paypal/paypal-messaging-components/dev-status.svg)](https://david-dm.org/paypal/paypal-messaging-components?type=dev)\n\nA messaging component allowing easy integration of PayPal Credit Messages onto your site.\n\n## Dev Docs\n\nSee **[developer.paypal.com/docs/business/pay-later/integrate/](https://developer.paypal.com/docs/business/pay-later/integrate/)**\n\n---\n\n## Development\n\nPlease feel free to follow the [Contribution Guidelines](./CONTRIBUTING.md) to contribute to this repository. PRs are welcome, but for major changes please raise an issue first.\n\n### Quick Setup\n\nSet up your env:\n\n```bash\nnpm install\n```\n\nRun tests:\n\n```bash\nnpm test\n```\n\nRun in dev mode:\n\n```bash\nnpm start\n```\n\n## Creating a Bundle\n\n```\nnpm run build\n```\n\nOptions\n\n-   `-v` - version, optional\n-   `-e` - environment, one of `production`, `sandbox` or `stage`\n-   `-m` - module, optional, one of `library`, `components`, or `render`\n-   `-t` - tag, optional, name of the stage tag\n-   `-s` - testEnv, optional, link to a test environment\n\nThe command you'll most likely need to use is\n\n```\nnpm run build -- -t stage-tag-name -s test-environment-link\n```\n\n## Scripts\n\n-   `build`\n\n    -   runs [semantic-release/assets.sh](./scripts/semantic-release/assets.sh) to build assets for all environments in `dist/`\n\n-   `build:\u003cenv\u003e` where `\u003cenv\u003e` is `stage`, `sandbox`, or `production`\n\n    -   runs webpack with `NODE_ENV=\u003cenv\u003e`\n\n-   `build:analyze`\n\n    -   runs [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer) in static gzip mode\n\n-   `build:demo`\n\n    -   runs webpack with `env.demo` set\n\n-   `dev`\n\n    -   runs webpack-dev-server with `TARGET=sdk`, `NODE_ENV=local`, `STAGE_TAG=local`\n\n-   `dev:\u003ctarget\u003e` where `\u003ctarget\u003e` is `standalone`, `modal`, or `lander`\n\n    -   runs webpack-dev-server with `TARGET=\u003ctarget\u003e`, `NODE_ENV=local`, `STAGE_TAG=local`\n    -   note: `modal` uses `TARGET=standalone-modal`\n\n-   `dev:\u003cenv\u003e` where `\u003cenv\u003e` is `stage`, `sandbox`, or `production`\n\n    -   runs webpack-dev-server with `TARGET=standalone` and `NODE_ENV=\u003cenv\u003e`\n\n-   `lint`\n\n    -   checks our codebase for style issues\n\n-   `preinstall`\n\n    -   runs automatically on `npm install` and removes `node_modules/`\n\n-   `start`\n\n    -   runs `npm run dev`\n\n-   `test`\n\n    -   runs all unit tests\n\n-   `test:\u003ctype\u003e` where `\u003ctype\u003e` is `func`, `func:nosnaps` or `func:ciupdate`\n    -   `func` runs all snapshot functional tests\n    -   `func:nosnaps` runs all non-snapshot functional tests\n    -   `func:ciupdate` updates all snapshots generated by functional tests\n\n## Testing\n\n### Functional\n\n1. Run `npm run dev:ci` in one command line instance\n2. In a second window run the below command, which runs tests for a specific `integrationType`\n    - `integrationType` is one of: `api`, `sdk`, `standalone`, or `webpage`\n\n```\nCONFIG_PATH={locale}/{account} npm run test:func:snapshots -- --testPathPattern {integrationType}\n```\n\nExample\n\n```\nCONFIG_PATH=US/DEV_US_MULTI npm run test:func:snapshots -- --testPathPattern sdk\n```\n\nAlternatively, you can remove `-- --testPathPattern {integrationType}` and just run the following to run tests on an account for all integration types.\n\n```\nCONFIG_PATH={locale}/{account} npm run test:func:snapshots\n```\n\n### Stage\n\n#### For PayPal Internal Testing Only:\n\nTo test against PayPal's standard stage url, ensure that the demo page contains the following script, then run `npm run dev:stage`:\n\n```javascript\n//Change the value of the url and add the script to the demo page (i.e. standalone.html)\n\u003cscript\u003ewindow.__TEST_ENV__ = \"https://www.{PAYPAL_STAGE_URL_HERE}.com\"\u003c/script\u003e\n```\n\nIf you are looking to run against an alternative environment, set the `window.__TEST_ENV__` global to override the environment. **Please note, this is only available in development environments.**\n\n```javascript\n//Change the value of the test environment\n\u003cscript\u003ewindow.__TEST_ENV__ = \"https://www.te-test-env.com\"\u003c/script\u003e\n```\n\n## Releasing\n\nThis package is published weekly, **Every Wednesday**. Please [view our Changelog](CHANGELOG.md) to stay updated with bug fixes and new features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaypal%2Fpaypal-messaging-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaypal%2Fpaypal-messaging-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaypal%2Fpaypal-messaging-components/lists"}