fapshi_pay 0.1.2 copy "fapshi_pay: ^0.1.2" to clipboard
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!

Fapshi Logo

Welcome to The Fapshi Flutter SDK Simplified Payments for the internet

Pub Version GitHub repo size GitHub issues GitHub Repo stars GitHub forks GitHub code size in bytes Website

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 #

  1. Import the payment SDK in your Dart file:
import 'package:fapshi_pay/fapshi_pay.dart';
  1. 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:

  1. Fork the repository and clone it to your local machine:
$ https://github.com/yunweneric/fapshi_pay
  1. Create a new branch for your changes:
$ git checkout -b feature/your-feature-name
  1. Make your changes and test them thoroughly.

  2. Add tests for new features or changes, and ensure all tests pass:

$ flutter test
  1. 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
  1. 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!

2
likes
140
points
13
downloads

Publisher

verified publisheryunweneric.com

Weekly Downloads

An Unofficial payment sdk for fapshi API for seamless payments. Build with ❤️ for fun and contribution to the open source community!

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bloc, dio, flutter, flutter_bloc, json_annotation, json_serializable

More

Packages that depend on fapshi_pay