{"id":20051738,"url":"https://github.com/seerbit/seerbit-flutter","last_synced_at":"2025-05-05T11:31:54.675Z","repository":{"id":37901280,"uuid":"448911346","full_name":"seerbit/seerbit-flutter","owner":"seerbit","description":"SeerBit Flutter","archived":false,"fork":false,"pushed_at":"2025-01-20T14:40:59.000Z","size":419,"stargazers_count":3,"open_issues_count":4,"forks_count":6,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-08T22:23:03.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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":"CHANGELOG.md","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":"2022-01-17T13:47:03.000Z","updated_at":"2025-01-20T14:39:42.000Z","dependencies_parsed_at":"2023-02-09T03:01:11.792Z","dependency_job_id":null,"html_url":"https://github.com/seerbit/seerbit-flutter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seerbit","download_url":"https://codeload.github.com/seerbit/seerbit-flutter/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252489080,"owners_count":21756261,"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:38.278Z","updated_at":"2025-05-05T11:31:54.130Z","avatar_url":"https://github.com/seerbit.png","language":"Dart","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 Flutter SDK\n \nSeerbit Flutter SDK can be used to integrate the SeerBit payment gateway into your flutter application.\n \n## Requirements\n \nRegister for a merchant account on [Seerbit Merchant Dashboard](https://dashboard.seerbitapi.com) to get started.\n \n```\n   Dart sdk: \"\u003e=3.4.3 \u003c4.0.0\"\n   Flutter: \"\u003e=1.17.0\"\n   Android: minSdkVersion 17 and add support for androidx (see AndroidX Migration to migrate an existing app)\n   iOS: --ios-language swift, Xcode version \u003e= 12\n```\n \n ## Instalation\n\n```bash\nflutter pub get seerbit_flutter\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| planId                 | `String`            | Optional | None                 | Subcription Plan ID                                       |\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```dart\nimport 'package:flutter/material.dart';\nimport 'package:seerbit_flutter/seerbit_flutter.dart';\n\nclass CheckOut extends StatelessWidget {\nconst CheckOut({Key? key}) : super(key: key);\nSeerbitMethod SeerBit = new SeerbitMethod();\n\n @override\n  Widget build(BuildContext context) {\n    return Container(\n      color: Colors.white,\n      height: 1000,\n      width: 500,\n      child: Center(\n        child: TextButton(\n          onPressed: () =\u003e paymentStart(context),\n          child: Text(\n            \"Checkout\",\n            style: TextStyle(color: Colors.red),\n          ),\n        ),\n      ),\n    );\n  }\n\npaymentStart(context){\n PayloadModel payload = PayloadModel(\n  currency: 'NGN',\n  email: \"hellxo@gmxail.com\",\n  description: \"Sneakers\",\n  fullName: \"General ZxXXod\",\n  country: \"NG\",\n  amount: \"102\",\n  transRef: Random().nextInt(2000).toString(),\n  publicKey: \"merchant*public_key\",\n  pocketRef: \"\",\n  vendorId: \"vendorId\",\n  closeOnSuccess: false,\n  closePrompt: false,\n  setAmountByCustomer: false,\n  tokenize: false,\n  planId: \"\",\n  customization: CustomizationModel(\n    borderColor: \"#000000\",\n    backgroundColor: \"#004C64\",\n    buttonColor: \"#0084A0\",\n    paymentMethod: [PayChannel.account, PayChannel.transfer, PayChannel.card, PayChannel.momo],\n    confetti: false,\n    logo: \"logo_url || base64\",\n  )\n);\n\nSeerBit.startPayment(\n  context, \n  payload: payload,\n  onSuccess: (*) { print(*);}, \n  onCancel: (_) { print('_' _ 400);}\n);\n\n}\n}\n\n````\n\n`onSuccess` you will recieve a Map containing the response from the payment request.\n\nDuring the payment process you can simply end the process by calling\n\n```dart\nSeerbitMethod.endPayment(context);\n````\n\nThis ends the payment and removes the checkout view from the screen.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseerbit%2Fseerbit-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-flutter/lists"}