{"id":20051732,"url":"https://github.com/seerbit/seerbit-nodejs","last_synced_at":"2025-05-05T11:31:50.613Z","repository":{"id":37901294,"uuid":"343863081","full_name":"seerbit/seerbit-nodejs","owner":"seerbit","description":"SeerBit NodeJS SDK","archived":false,"fork":false,"pushed_at":"2022-06-14T16:19:48.000Z","size":307,"stargazers_count":2,"open_issues_count":1,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-20T15:46:03.546Z","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/seerbit.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-03-02T17:51:19.000Z","updated_at":"2022-11-12T21:25:28.000Z","dependencies_parsed_at":"2022-08-19T21:51:23.205Z","dependency_job_id":null,"html_url":"https://github.com/seerbit/seerbit-nodejs","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/seerbit%2Fseerbit-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seerbit","download_url":"https://codeload.github.com/seerbit/seerbit-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252489068,"owners_count":21756259,"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-13T12:05:37.579Z","updated_at":"2025-05-05T11:31:50.608Z","avatar_url":"https://github.com/seerbit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n \u003cimg width=\"400\" valign=\"top\" src=\"https://assets.seerbitapi.com/images/seerbit_logo_type.png\"\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003e\n  \u003cimg width=\"60\" valign=\"bottom\" src=\"https://nodejs.org/static/images/logo.svg\"\u003e\n   SeerBit\n\u003c/h1\u003e\n\n# SeerBit's API SDK for NodeJS\n\nSeerBit NodeJS SDK for easy integration with SeerBit's API.\n\n## Integration\n\nThe Library supports all APIs under the following services:\n\n- [x] standard checkout\n- [x] recurrent payment\n- [x] pre-auth payment\n- [x] mobile money payment\n- [x] card payments\n- [x] order service\n\n## Requirements\n\n- Node 14 or higher\n\n## Installation\n\n```bash\nnpm install --save seerbit-nodejs\n\nOR\n\nyarn add --save seerbit-nodejs\n\nOR\n\npnpm install --save seerbit-nodejs\n```\n\n#### You can find both public and secret keys from your merchant dashboard.\n\nYour merchant account token can be generated following the guides [here](https://doc.seerbit.com/development-resources/key-encryption)\n\n## Usage\n\n### Standard Checkout\n\n```js\nconst {Client, Config, StandardCheckout} = require(\"seerbit-nodejs\");\nconst {SeerBitConfig} = require(\"../config\");\nconst config = new Config(\n    {\n        publicKey: SeerBitConfig.PUBLIC_KEY,\n        secretKey: SeerBitConfig.SECRET_KEY,\n        bearerToken: SeerBitConfig.TOKEN\n    });\nconst client = new Client(config);\n\nconst standard = new StandardCheckout(client);\nconst payload = {\n    amount:100,\n    callbackUrl: \"www.testapp.com\",\n    country: \"NG\",\n    currency: \"NGN\",\n    email:\"testmerchant@mail.com\",\n    paymentReference: Date.now()\n    fullName: \"Test Name\"\n    tokenize: false\n}\n\nstandard.Initialize(payload)\n    .then(res=\u003econsole.log(res))\n    .catch(e=\u003econsole.log(e))\n```\n\nYou can find more usage in the [samples](samples) folder\n\n## Properties\n\n| Property         | Type                 | Required | Desc                                                     |\n| ---------------- | -------------------- | -------- | -------------------------------------------------------- |\n| currency         | `String`             | Optional | The currency for the transaction e.g NGN                 |\n| email            | `String`             | Required | The email of the user to be charged                      |\n| fullName         | `String`             | Optional | The fullname of the user to be charged                   |\n| country          | `String`             | Optional | Transaction country which can be optional                |\n| amount           | `String`             | Required | The transaction amount in kobo                           |\n| publicKey        | `String`             | Required | Your Public key or see above step to get yours           |\n| tokenize         | `bool`               | Optional | Tokenize card                                            |\n| paymentReference | `String` or `Number` | Required | Set a unique transaction reference for every transaction |\n\n## API Documentation\n\n- https://doc.seerbit.com/\n\n## Contributing\n\nWe strongly encourage you to join us in contributing to this repository so everyone can benefit from:\n\n- New features and functionality\n- Resolved bug fixes and issues\n- Any general improvements\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseerbit%2Fseerbit-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-nodejs/lists"}