flutterwave_checkout_lbtech 0.0.7 copy "flutterwave_checkout_lbtech: ^0.0.7" to clipboard
flutterwave_checkout_lbtech: ^0.0.7 copied to clipboard

A Flutter project for Flutterwave checkout. It implements the flutterwave html checkout (https://developer.flutterwave.com/docs/html-checkout).

Introduction #

The Flutter package helps you create seamless payment experiences in your dart mobile app. It implements the flutterwave html checkout for payment collection. Kindly note this a community package; flutterwave_standard is the official package developed by the flutter wave team.

Supported Platforms #

  • Android
  • iOS

Installation #

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

Usage #

Create an object of FlwCheckoutRequest. It parameters are as tabulated below:

Parameter Data type Description
redirectUrl String redirect_url form field
amount num amount form field
email String customer email form field
transactionRef String tx_ref form field
customerName String customer name form field
currency String currency form field e.g NGN, USD etc check flutterwave documentation for possible value
publicKey String public_key form field
onSuccess void Function (Map<String, String> data)? callback action on payment success or user cancel payment. It returns a Map Object as defined by the flutterwave documentation
onError void Function (String message)? callback action if any http error is encountered
import 'package:flutterwave_checkout_lbtech/models/flw_checkout_request.dart';
final FlwCheckoutRequest flwCheckoutRequest = FlwCheckoutRequest(
        redirectUrl: "https://mysite.com",// ensure it is a valid url 
        amount: 2000.50,
        email: "mail@gmail.com",
        transactionRef: DateTime.now().millisecondsSinceEpoch.toString(),
        customerName: "Solomon Oluwafemi",
        currency: "NGN",
        onSuccess: (data) {},
        onError: (message) {
          
        },
        publicKey: "FLWPUBK_TEST-gigiggjgjgjggjgjgvvnvn-X");

Call the static checkout method of FlutterwaveChecoutLbtech class. It takes the parameter below:

  • FlwCheckoutRequest
  • BuildContext.
import 'package:flutterwave_checkout_lbtech/flutterwave_checkout_lbtech.dart';
await FlutterwaveChecoutLbtech.checkout(
            checkoutRequest: flwCheckoutRequest, context: context);

Built using #

Flutterwave API References #

Author contact #

For issues or suggestions kindly send a mail to solotechblast@gmail.com

2
likes
0
points
63
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter project for Flutterwave checkout. It implements the flutterwave html checkout (https://developer.flutterwave.com/docs/html-checkout).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_inappwebview, intl

More

Packages that depend on flutterwave_checkout_lbtech