{"id":16085692,"url":"https://github.com/iamraphson/react-ravepayment","last_synced_at":"2025-03-16T08:32:19.144Z","repository":{"id":57356168,"uuid":"102141558","full_name":"iamraphson/react-ravepayment","owner":"iamraphson","description":"ReactJS library for implementing RavePay payment gateway","archived":false,"fork":false,"pushed_at":"2020-06-24T12:51:46.000Z","size":3109,"stargazers_count":38,"open_issues_count":7,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T05:55:56.721Z","etag":null,"topics":["javascript","payment","payment-integration","ravepay","reactjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-ravepayment","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamraphson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-01T18:25:20.000Z","updated_at":"2021-05-31T06:43:41.000Z","dependencies_parsed_at":"2022-09-17T08:51:25.654Z","dependency_job_id":null,"html_url":"https://github.com/iamraphson/react-ravepayment","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/iamraphson%2Freact-ravepayment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamraphson%2Freact-ravepayment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamraphson%2Freact-ravepayment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamraphson%2Freact-ravepayment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamraphson","download_url":"https://codeload.github.com/iamraphson/react-ravepayment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806070,"owners_count":20350775,"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":["javascript","payment","payment-integration","ravepay","reactjs"],"created_at":"2024-10-09T13:08:58.124Z","updated_at":"2025-03-16T08:32:18.867Z","avatar_url":"https://github.com/iamraphson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ravepayment\n\nA React library wrapper for implementing ReavePay Payment Gateway\n\n## Demo\n\n![Alt text](React_App.png?raw=true \"Demo Image\")\n\n### Installation\n\n```bash\nnpm install react-ravepayment --save\n```\n\nor\n\n```bash\nyarn add react-ravepayment --save\n```\n\n### Usage\n\n### Hooks\n\n```js\nimport React, { Component } from \"react\";\nimport { useRavePayment } from \"react-ravepayment\";\n\nconst config = {\n  txref: \"rave-123456\",\n  customer_email: \"user@example.com\",\n  customer_phone: \"234099940409\",\n  amount: 2000,\n  PBFPubKey: \"FLWPUBK-XXXXXXXXXXXXXXXXXXXXXXXXXX-X\",\n  production: false,\n};\n\nconst App = () =\u003e {\n  const { initializePayment } = useRavePayment(config);\n  return (\n    \u003cdiv\u003e\n      \u003cbutton onClick={() =\u003e initializePayment()}\u003ePay 2000\u003c/button\u003e\n    \u003c/div\u003e\n  );\n};\n\nexport default App;\n```\n\n### Components\n\n```js\nimport React, { Component } from \"react\";\nimport { RaveProvider, RavePaymentButton } from \"react-ravepayment\";\n\nconst config = {\n  txref: \"rave-123456\",\n  customer_email: \"user@example.com\",\n  customer_phone: \"234099940409\",\n  amount: 2000,\n  PBFPubKey: \"FLWPUBK-XXXXXXXXXXXXXXXXXXXXXXXXXX-X\",\n  production: false,\n  onSuccess: () =\u003e {},\n  onClose: () =\u003e {}\n};\n\nconst App = () =\u003e {\n  return (\n    \u003cdiv\u003e\n      \u003cRaveProvider {...config}\u003e\n        \u003cRavePaymentButton\u003ePay 2000\u003c/RavePaymentButton\u003e\n      \u003c/RaveProvider\u003e\n    \u003c/div\u003e\n  );\n};\n\nexport default App;\n```\n\nFor more usage example [check](/example/src)\n\n## API\n\nSee the [API reference](https://link-to-github-pages).\n\n## Deployment\n\nWHEN DEPLOYING TO PRODUCTION/LIVE SYSTEM, take note of the following;\n\n1. Change isProduction attribute in the component tag to true i.e isProduction={true}\n2. Change RavePay PUBLIC KEY\n3. Ensure you implement [webhooks](https://flutterwavedevelopers.readme.io/docs/events-webhooks) to receive automatic updates when a transaction happens.\n\n## Contribution\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b feature-name`\n3. Commit your changes: `git commit -am 'Some commit message'`\n4. Push to the branch: `git push origin feature-name`\n5. Submit a pull request 😉😉\n\nThis project follows the [all-contributors](https://allcontributors.org/) specification.\nContributions of any kind welcome!\n\n### Issues\n\nLooking to contribute? Look for the Good First Issue label.\n\n### 🐛 Bugs\n\nPlease file an issue for bugs, missing documentation, or unexpected behavior.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamraphson%2Freact-ravepayment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamraphson%2Freact-ravepayment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamraphson%2Freact-ravepayment/lists"}