{"id":20051729,"url":"https://github.com/seerbit/seerbit-svelte","last_synced_at":"2026-05-13T00:06:29.683Z","repository":{"id":209733249,"uuid":"724033858","full_name":"seerbit/seerbit-svelte","owner":"seerbit","description":"The official SeerBit library for Svelte","archived":false,"fork":false,"pushed_at":"2023-12-13T21:33:40.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T16:18:45.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-27T09:05:09.000Z","updated_at":"2023-12-13T21:02:33.000Z","dependencies_parsed_at":"2025-03-02T08:42:43.021Z","dependency_job_id":"d80cdddd-89fc-47b7-9710-d22607937c15","html_url":"https://github.com/seerbit/seerbit-svelte","commit_stats":null,"previous_names":["seerbit/seerbit-svelte"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/seerbit/seerbit-svelte","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seerbit","download_url":"https://codeload.github.com/seerbit/seerbit-svelte/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-svelte/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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.204Z","updated_at":"2026-05-13T00:06:29.667Z","avatar_url":"https://github.com/seerbit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg width=\"200\" valign=\"top\" src=\"https://assets.seerbitapi.com/images/seerbit_logo_type.png\" data-canonical-src=\"https://assets.seerbitapi.com/images/seerbit_logo_type.png\" style=\"max-width:100%; \"\u003e\n\u003c/p\u003e\n \n# Seerbit Svelte Package\n \nSeerbit Svelte Package can be used to integrate the SeerBit payment gateway into your svelte application.\n \n## Requirements\n \nRegister for a merchant account on [Seerbit Merchant Dashboard](https://dashboard.seerbitapi.com) to get started.\n \n```\n  Svelte application\n  Node js\n  NPM\n```\n \n ## Instalation\n\n```bash\nnpm install seerbit-svelte\n```\n\n## API Documentation\n\nhttps://doc.seerbit.com\n\n## Support\n\nIf you have any problems, questions or suggestions, create an issue here or send your inquiry to care@seerbit.com\n\n## Implementation\n\nYou should already have your API keys. If not, go to [dashboard.seerbitapi.com](https://dashboard.seerbitapi.com). Login -\u003e Settings menu -\u003e API Keys menu -\u003e Copy your public key\n\n## Properties\n\n| Property            | Type               | Required | Default            | Desc                                                                                                                                                                                                                                    |\n| ------------------- | ------------------ | -------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| currency            | `String`           | Optional | NGN                | The currency for the transaction e.g NGN                                                                                                                                                                                                |\n| email               | `String`           | Required | None               | The email of the user to be charged                                                                                                                                                                                                     |\n| description         | `String`           | Optional | None               | The transaction description which is optional                                                                                                                                                                                           |\n| fullName            | `String`           | Optional | None               | The fullname of the user to be charged                                                                                                                                                                                                  |\n| country             | `String`           | Optional | None               | Transaction country which can be optional                                                                                                                                                                                               |\n| transRef            | `String`           | Required | None               | Set a unique transaction reference for every transaction                                                                                                                                                                                |\n| amount              | `String`           | Required | None               | The transaction amount in kobo                                                                                                                                                                                                          |\n| callbackUrl         | `String`           | Optional | None               | This is the redirect url when transaction is successful                                                                                                                                                                                 |\n| publicKey           | `String`           | Required | None               | Your Public key or see above step to get yours                                                                                                                                                                                          |\n| closeOnSuccess      | `bool`             | Optional | False              | Close checkout when trasaction is successful                                                                                                                                                                                            |\n| closePrompt         | `bool`             | Optional | False              | Close the checkout page if transaction is not initiated                                                                                                                                                                                 |\n| setAmountByCustomer | `bool`             | Optional | False              | Set to true if you want user to enter transaction amount                                                                                                                                                                                |\n| pocketRef           | `String`           | Optional | None               | This is your pocket reference for vendors with pocket                                                                                                                                                                                   |\n| vendorId            | `String`           | Optional | None               | This is the vendorId of your business using pocket                                                                                                                                                                                      |\n| tokenize            | `bool`             | Optional | False              | Tokenize card                                                                                                                                                                                                                           |\n| customization       | CustomizationModel | Optional | CustomizationModel | CustomizationMode( borderColor: \"#000000\", backgroundColor: \"#004C64\", buttonColor: \"#0084A0\", paymentMethod:[PayChannel.card, PayChannel.account, PayChannel.transfer, PayChannel.momo], confetti: false , logo: \"logo_url or base64\") |\n| onSuccess           | `Method`           | Optional | None               | Callback method if transaction was successful                                                                                                                                                                                           |\n| onCancel            | `Method`           | Optional | None               | Callback method if transaction was cancelled                                                                                                                                                                                            |\n\n## Usage\n\n```Svelte page\n\n \u003cscript\u003e\n  import Seerbit from \"seerbit-svelte\";\n\u003c/script\u003e\n\n\t\u003cSeerbit   \n\t\tpublic_key=\"YOUR PUBLIC KEY\"\n\t\ttranref={new Date().getTime()}\n\t\tfull_name=\"John Doe\"\n\t\tamount=\"145.00\"\n\t\temail=\"test@emaildomain.com\"\n\t\tcurrency=\"NGN\"\n\t\tcountry=\"NG\"\n\t\tmobile_no=\"\"\n\t\tproductId=\"\"\n\t\tdescription=\"\"\n\t\tplanId=\"\"\n\t\tvendorId=\"\"\n\t\tpocketReference=\"\"\n\t\tsetAmountByCustomer={false}\n\t\ttokenize={false}\n\t\tcustomization={{\n\t\t\tpayment_method: [\"card\", \"account\", \"transfer\", \"ussd\", \"momo\"],\n\t\t\tconfetti: true,\n\t\t\tlogo: \"\",\n\t\t\ttheme: {\n\t\t\tborder_color:'fff',\n\t\t\tbackground_color:'fff',\n\t\t\tbutton_color:'fff',\n\t\t\t}\n\t\t}}\n\t\tonSuccess={(response, closeModal) =\u003e {\n\t\t\tconsole.log(response);\n\n      setTimeout(() =\u003e closeModal(), 3000)\n\t\t}}\n\t\tclose={(close) =\u003e {\n\t\t\tconsole.log(close);\n\t\t}}\n\t\tbuttonText=\"Make Payment\"\n\t\tbuttonStyle={{\n\t\t\tstyle: \"padding-top: 40px; padding-bottom: 40px; width: 50%; border-radius: 20px; color: #fff; background-color: red; font-size: 10px\",\n\t\t}}\n/\u003e\n\n```\n\n`onSuccess` you will recieve a Map containing the response from the payment request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseerbit%2Fseerbit-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-svelte/lists"}