{"id":18337311,"url":"https://github.com/derrmru/paypal-smart-button-react","last_synced_at":"2026-05-05T20:44:02.643Z","repository":{"id":57342337,"uuid":"359824379","full_name":"derrmru/paypal-smart-button-react","owner":"derrmru","description":"A simple and straightforward react component to render a paypal smart button","archived":false,"fork":false,"pushed_at":"2021-07-30T16:04:28.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:17:01.772Z","etag":null,"topics":["paypal-button","react-paypal","reactjs"],"latest_commit_sha":null,"homepage":"https://thepetersweeney.com/projects/paypal-react","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derrmru.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-20T13:23:55.000Z","updated_at":"2021-07-30T16:04:31.000Z","dependencies_parsed_at":"2022-09-16T02:50:26.110Z","dependency_job_id":null,"html_url":"https://github.com/derrmru/paypal-smart-button-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrmru%2Fpaypal-smart-button-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrmru%2Fpaypal-smart-button-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrmru%2Fpaypal-smart-button-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrmru%2Fpaypal-smart-button-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derrmru","download_url":"https://codeload.github.com/derrmru/paypal-smart-button-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103860,"owners_count":21048245,"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":["paypal-button","react-paypal","reactjs"],"created_at":"2024-11-05T20:10:46.042Z","updated_at":"2026-05-05T20:44:02.616Z","avatar_url":"https://github.com/derrmru.png","language":"JavaScript","funding_links":["https://developer.paypal.com/docs/checkout/integrate/?_ga=2.152185595.332577341.1618841693-1038715808.1617958209","https://www.buymeacoffee.com/derrmru"],"categories":[],"sub_categories":[],"readme":"# Paypal Smart Button\n\nSometimes you just want a react component to be simple and work straight away. No Config and only a handful of required props.\n\nThis is a PayPal smart button that just works.\n\n## Setup\n\n1. The Hard Bit - if you have not already done so, follow [PayPal's instructions](https://developer.paypal.com/docs/checkout/integrate/?_ga=2.152185595.332577341.1618841693-1038715808.1617958209) to get your Client ID\n\n2. In your CLI and once navigated to your React JS project, install with the following command:\n\n```javascript\nnpm i react-paypal-smart-button\n```\n\n3. Implement in your app, as per the following example:\n\n```javascript\nimport PayPalButton from 'react-paypal-smart-button'\n\nfunction App() {\n  return (\n      \u003cPayPalButton \n        price={100}\n        description=\"YOUR_PRODUCT_DESCRIPTION\"\n        clientId=\"YOUR_PAYPAL_APP_CLIENT_ID\"\n        currency=\"USD\"\n        paySubmit={() =\u003e handlePaypalSuccess()}\n       /\u003e\n  );\n}\n\nexport default App;\n```\n\nThe props are of the following types:\n\n```\nprice: number,\ndescription: string,\nclientId: string,\ncurrency: string  || this is a three digit currency code e.g. 'EUR', 'GBP' or 'USD'\npaySubmit: function || this function will be called following successful payment transaction in your application. Handle the successful transaction however you like.\n```\n\n## Dependencies\n\nNone, just use it in your react project.\n\n## Support My Work\n\nIf you find this component useful or like my work, why not buy me a coffee! - [Click Here](https://www.buymeacoffee.com/derrmru)\n\n## That's it!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderrmru%2Fpaypal-smart-button-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderrmru%2Fpaypal-smart-button-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderrmru%2Fpaypal-smart-button-react/lists"}