{"id":16085674,"url":"https://github.com/iamraphson/angular4-ravepayment","last_synced_at":"2025-03-17T17:30:37.694Z","repository":{"id":29993562,"uuid":"130261287","full_name":"iamraphson/angular4-ravepayment","owner":"iamraphson","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-29T12:39:21.000Z","size":2401,"stargazers_count":3,"open_issues_count":33,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T13:39:37.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-19T19:13:11.000Z","updated_at":"2020-04-27T17:30:30.000Z","dependencies_parsed_at":"2023-01-14T16:04:05.259Z","dependency_job_id":null,"html_url":"https://github.com/iamraphson/angular4-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%2Fangular4-ravepayment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamraphson%2Fangular4-ravepayment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamraphson%2Fangular4-ravepayment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamraphson%2Fangular4-ravepayment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamraphson","download_url":"https://codeload.github.com/iamraphson/angular4-ravepayment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841125,"owners_count":20356440,"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-10-09T13:08:39.327Z","updated_at":"2025-03-17T17:30:37.312Z","avatar_url":"https://github.com/iamraphson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rave Payment Component for Angular 2, 4, 5\nAn AngularJS library for RavePay Payment Gateway.\n\n### Demo\n![Demo Image](demo.png?raw=true \"Demo Image\")\n\n### Get Started\n\nThis AngularJS library provides a wrapper to add RavePay Payment to your AngularJS application\n\n### Install\n```bash\nnpm install angular4-ravepayment --save\n```\n\nor\n\n```bash\nyarn add angular4-ravepayment \n```\n\nThen go ahead and reference the Rave inline script in your index.html:\n```html\n\u003cscript src=\"//ravesandboxapi.flutterwave.com/flwv3-pug/getpaidx/api/flwpbf-inline.js\"\u003e\u003c/script\u003e\n```\n\n# Notice\n\n**For complete payment security, kindly use our integrity checksum feature to hash all payment values before passing it to the front end for processing.**\n\n**Please see link to implement checksum: https://flutterwavedevelopers.readme.io/v1.0/docs/checksum**\n\n**Also ensure you verify all transactions before giving value to your customer.**\n\n**Please see link to verify transactions: https://flutterwavedevelopers.readme.io/v1.0/docs/status-check**\n\n\n### Usage\n`app.module.ts` file\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { AppComponent } from './app.component';\nimport { RavepaymentModule } from 'angular4-ravepayment';\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    RavepaymentModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n`app.component.html` file\n```typescript jsx\n\u003crave-pay-button\n    [text]=\"'Pay me,my money'\"\n    [className]=\"'paymentbtn'\"\n    (callback)=\"confirmPayment($event)\"\n    (close)=\"cancelledPayment()\"\n    [key]=\"'FLWPUBK-xxxxxxxxxxxxxxxxxxxxxxxx-X'\"\n    [reference]=\"generateReference()\"\n    [amount]=\"10000\"\n    [email]=\"'FooBar@rave.com'\"\n\u003e\u003c/rave-pay-button \u003e\n```\n`app.component.ts` file\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n  confirmPayment(response: object): void {\n    console.log(response);\n  }\n\n  cancelledPayment(): void {\n      console.log('close');\n  }\n\n  generateReference(): string {\n      let text = '';\n      const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n      for (let i = 0; i \u003c 10; i++) {\n          text += possible.charAt(Math.floor(Math.random() * possible.length));\n      }\n\n      return text;\n  }\n}\n````\n[Usage](./src/app/app.component.html)\n\n## Deployment\nWHEN DEPLOYING TO PRODUCTION/LIVE SYSTEM, take note of the following;\n1) Change RavePay Inline script,you kept in the index.html to \n```javascript\n\u003cscript src=\"//api.ravepay.co/flwv3-pug/getpaidx/api/flwpbf-inline.js\"\u003e\u003c/script\u003e\n```\n2) Change RavePay PUBLIC KEY\n\n## Contributing\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\n## How can I thank you?\n\nWhy not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or Any Social Media? Spread the word!\n\nDon't forget to [follow me on twitter](https://twitter.com/iamraphson)!\n\nThanks!\nAyeni Olusegun.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamraphson%2Fangular4-ravepayment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamraphson%2Fangular4-ravepayment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamraphson%2Fangular4-ravepayment/lists"}