패키지, 저장소 및 앱 카테고리 검색

GitHub 저장소Flutterwave/Flutter-v3

Flutter-v3

Flutterwave for Business (F4B) v3 API용 Flutter 라이브러리.

Flutter-v3 프로젝트 이미지
스타
3
포크
3
최근 푸시(UTC)
2025. 10. 23.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

Flutterwave

Flutterwave Flutter SDK (Standard)

The Flutter library helps you create seamless payment experiences in your dart mobile app. By connecting to our modal, you can start collecting payment in no time.

Available features include:

  • Collections: Card, Account, Mobile money, Bank Transfers, USSD.
  • Recurring payments: Tokenization and Subscriptions.
  • Split payments.

Table of Contents

  1. Requirements
  2. Installation
  3. Usage
  4. Support
  5. Contribution guidelines
  6. License

Requirements

  1. Flutterwave for business API Keys
  2. Supported Flutter version >= 1.17.0
  3. Dart SDK >= 2.17.0
  4. For Android development, ensure the NDK version >= 27.0.12077973 on your project's android/app/build.gradle.kts file with android { ndkVersion = "27.0.12077973" }.

Installation

  1. Add the dependency to your project. In your pubspec.yaml file add: flutterwave_standard: 1.1.0
  2. Run flutter pub get.

Usage

Initializing a Flutterwave instance

To create an instance, you should call the Flutterwave constructor. This constructor accepts a mandatory instance of the following:

  • publicKey
  • Customer
  • amount
  • email
  • fullName
  • txRef
  • isTestMode
  • paymentOptions
  • redirectUrl
  • Customization

It returns an instance of Flutterwave which we then call the async method .charge() on.

_

handlePaymentInitialization() async {
	 final Customer customer = Customer(
	 name: "Flutterwave Developer",
	 phoneNumber: "1234566677777",
     email: "customer@customer.com"
 );
    final Flutterwave flutterwave = Flutterwave(
        publicKey: "Public Key-here",
		currency: "currency-here",
        redirectUrl: "add-your-redirect-url-here",
        txRef: "add-your-unique-reference-here",
        amount: "3000",
        customer: customer,
        paymentOptions: "ussd, card, bank transfer",
        customization: Customization(title: "My Payment"),
        isTestMode: true );

         final ChargeResponse response = await flutterwave.charge(context);

    // Handle the response
    if (response.success == true) {
    // Payment was successful
    } else {
    // Payment failed or was cancelled
    }
 }
Handling the response

Calling the .charge() method returns a Future of ChargeResponse which we await for the actual response as seen above.

final ChargeResponse response = await flutterwave.charge(context);

Call the verify transaction endpoint with the transactionID returned in response.transactionId or the txRef you provided to verify transaction before offering value to customer

Note
  • ChargeResponse can be null, depending on if the user cancels the transaction by pressing back.
  • You need to confirm the transaction status is successful. Ensure that the txRef, amount, and status are correct and successful. Be sure to verify the transaction details before providing value.
  • Some payment methods are not instant, such a Pay with Bank Transfers, Pay with Bank, and so you would need to rely on webhooks or call the transaction verification service using the transactionId, or transaction reference you created(txRef)
  • For such long payments like the above, closing the payment page returns a cancelled status, so your final source of truth has to be calling the transaction verification service.

Support

For additional assistance using this library, contact the developer experience (DX) team via [email](mailto:developers@flutterwavego.com) or on slack.

You can also follow us @FlutterwaveEng and let us know what you think 😊.

Contribution guidelines

Read more about our community contribution guidelines here.

License

By contributing to the Flutter library, you agree that your contributions will be licensed under its MIT license.

Copyright (c) Flutterwave Inc.

Built Using

Other Resources

Flutterwave GitHub avatar
GitHub 작성자

Flutterwave ↗

United States of America공식 웹사이트 ↗
언어DartC++CMakeRubySwiftCHTMLKotlinObjective-C

분류

사용 중인 의존성

의존성 목록 6 개

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗