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!

Libraries

fapshi_pay