fapshi_pay 0.1.2
fapshi_pay: ^0.1.2 copied to clipboard
An Unofficial payment sdk for fapshi API for seamless payments. Build with ❤️ for fun and contribution to the open source community!
Welcome to The Fapshi Flutter SDK Simplified Payments for the internet
Payment SDK for Flutter
This is a payment SDK for Flutter apps, developed in Dart, that provides functionalities to integrate various payment methods seamlessly into your Flutter applications.
Features #
- Easy integration of popular payment methods
- Support for both iOS and Android platforms
- Customizable UI components for payment flows
- Secure handling of payment transactions
- Extensive documentation and examples
Installation #
To use this SDK in your Flutter project, add the following dependency to your pubspec.yaml file:
dependencies:
fapshi_pay: ^1.0.0
Then run:
$ flutter pub get
Usage #
- Import the payment SDK in your Dart file:
import 'package:fapshi_pay/fapshi_pay.dart';
- Add the FapshiPay Widget and use:
FapshiPay(
env: AppEnv.DEV,
sandboxApiKey: '',
sandboxApiUser: '',
liveApiKey: '',
liveApiUser: '',
title: "Pay now",
amount: 3000,
phone: "67xxxxxx",
icon: const Icon(Icons.payment),
shouldCheckPaymentStatus: true,
onPayComplete: (paymentResponse) {},
onCheckPaymentFailed: (paymentResponse) {},
onCheckPaymentSuccess: (paymentResponse) {},
),
Contribution Guide #
We welcome contributions from the community to make this SDK better! To contribute, follow these steps:
- Fork the repository and clone it to your local machine:
$ https://github.com/yunweneric/fapshi_pay
- Create a new branch for your changes:
$ git checkout -b feature/your-feature-name
-
Make your changes and test them thoroughly.
-
Add tests for new features or changes, and ensure all tests pass:
$ flutter test
- Commit your changes and push them to your fork:
$ git add .
$ git commit -m "Your descriptive commit message"
$ git push origin feature/your-feature-name
- Create a pull request from your fork to the main repository.
Code of Conduct #
Please note that this project is governed by a Code of Conduct. We expect all contributors and users to adhere to it. The Code of Conduct can be found in the CODE_OF_CONDUCT.md file in this repository.
License #
This SDK is released under the MIT License. You can find the license details in the LICENSE file.
Support #
For any questions, issues, or feature requests, feel free to create an issue in this repository or contact us at yunweneric@gmail.com.
Acknowledgements #
We would like to thank all contributors who have helped in making this SDK possible.
Feel free to add any additional information specific to your SDK or your organization!