https://github.com/programmingwormhole/uddoktapay
Flutter package for payment gateway service UddoktaPay (Bangladesh). UddoktaPay payment easy to implement through this package on your flutter project.
https://github.com/programmingwormhole/uddoktapay
Last synced: about 1 month ago
JSON representation
Flutter package for payment gateway service UddoktaPay (Bangladesh). UddoktaPay payment easy to implement through this package on your flutter project.
- Host: GitHub
- URL: https://github.com/programmingwormhole/uddoktapay
- Owner: programmingwormhole
- License: bsd-3-clause
- Created: 2024-04-09T06:31:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-18T16:17:10.000Z (5 months ago)
- Last Synced: 2025-01-30T14:18:53.412Z (3 months ago)
- Language: Dart
- Size: 12.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
UddoktaPay Payment Gateway Flutter Package By Programming Wormhole
[](https://pub.dev/packages/uddoktapay)
[](https://opensource.org/licenses/BSD-3-Clause)
[]() []()
[]()
![]()
This is a [Flutter package](https://pub.dev/packages/uddoktapay) for [UddoktaPay](https://uddoktapay.com) Payment Gateway. This package can be used in flutter project. Programming Wormhole was created this package while working for a project and thought to release for all so that it helps.
> :warning: Please note that, you have to contact with UddoktaPay sales team for any kind of dev or production access keys. We don't provide any test account or access keys or don't contact us for such.
Check the package in github and also available in flutter/dart package
[](https://github.com/programmingwormhole) [](https://facebook.com/no.name.virus) [](https://instagram.com/no.name.virus) [](https://www.linkedin.com/in/mdshirajulislam-dev) [](https://www.youtube.com/@programmingwormhole)
## How to use:
Depend on it, Run this command With Flutter:
```
$ flutter pub add uddoktapay
```
This will add a line like this to your package's `pubspec.yaml` (and run an implicit **`flutter pub get`**):
```
dependencies:
uddoktapay: ^0.0.3
```
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more. Import it, Now in your Dart code, you can use:
```
import 'package:uddoktapay/uddoktapay.dart';
import 'package:uddoktapay/models/customer_model.dart';
```
## Features
- Pay using UddoktaPay## Usage
Official Link for API documentation and demo checkout
- [UddoktaPay API Documentation](https://uddoktapay.readme.io/reference/overview)### Make a Payment
***Sandbox***
```
UddoktaPay.createPayment(
context: context,
customer: CustomerDetails(
fullName: 'Programming Wormhole',
email: '[email protected]',
),
amount: '50',
);
```
***Production***
```
UddoktaPay.createPayment(
context: context,
customer: CustomerDetails(
fullName: 'Programming Wormhole',
email: '[email protected]',
),
amount: '50',
credentials: UddoktapayCredentials(
apiKey: 'api_key',
panelURL: 'https://pay.domain.com',
),
)
```
> Make sure to replace the provided credentials with your own UddoktaPay production credentials.***Response***
```
final response = await UddoktaPay.createPayment(
....
....
)
```***Response Sample***
```
RequestResponse(
fullName: "Programming Wormhole",
email: "[email protected]",
amount: "50.00","fee":"0.00",
chargedAmount: "50.00",
invoiceId: "a19Aun0gPxIqBVjnCfpL",
paymentMethod: "bkash",
senderNumber: "675675656765",
transactionId: "FGHGFHJGHG",
date: "2024-04-09 12:01:28",
status: ResponseStatus.completed,
);
```
### Error Handling
The methods mentioned above may throw a `status`. You can catch and handle the status using a if-else block:
```
if (response.status == ResponseStatus.completed) {
// handle on complete
}
if (response.status == ResponseStatus.canceled) {
// handle on cancel
}
if (response.status == ResponseStatus.pending) {
// handle on pending
}
```Examples for see the `/example` folder.
**Here is the example code** [link](https://github.com/programmingwormhole/uddoktapay/blob/master/example/lib/main.dart)
**Example Video Demo**
### Importance Notes
- Read the comments in the example of code
- See the documents [UddoktaPay API Documentation](https://uddoktapay.readme.io/reference/overview)## Contributing
**Core Maintainer**
- [Md Shirajul Islam](https://github.com/programmingwormhole)Contributions to the **uddoktapay** package are welcome. Please note the following guidelines before submitting your pull request.
- Follow [Effective Dart: Style](https://dart.dev/guides/language/effective-dart/style) coding standards.
- Read UddoktaPay API documentations first.Please contact with UddoktaPay for their api documentation and sandbox access.## License
Uddoktapay package is licensed under the [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause).
Copyright 2024 [Programming Wormhole](https://programmingwormhole.com). We are not affiliated with UddoktaPay and don't give any guarantee.