hover_ussd 1.0.0-nullsaffety copy "hover_ussd: ^1.0.0-nullsaffety" to clipboard
hover_ussd: ^1.0.0-nullsaffety copied to clipboard

discontinued
outdated

A flutter plugin to make payments by usehover.com ussd gateway using Android Intent and receiving the transaction information back in response.

hover_ussd #

build Pub Star on GitHub Flutter Website License: MIT

[drawing]

A flutter plugin to make payments by usehover.com ussd gateway using Android Intent and receiving the transaction information back in response. android only

Getting Started #

 <meta-data
        android:name="com.hover.ApiKey"  
        android:value="<YOUR_API_TOKEN>"/>
copied to clipboard

Usage #

  • Example
import 'package:hover_ussd/hover_ussd.dart';
...
final HoverUssd _hoverUssd = HoverUssd(branding: "My Awaesome app", logo:"myLogo_added");

///Begin transaction
void send(){
  _hoverUssd.sendUssd(actionId: "c6e45e62", extras: {"price": "4000"});;
}

///Listen for transaction status
 _hoverUssd.onTransactiontateChanged.listen((event) {
        // Do something with new state
        if (event == TransactionState.succesfull) {
          print("succesfull");
        } else if (event == TransactionState.waiting) {
          print("pending");
        } else if (event == TransactionState.failed) {
          print('failed');
        }
  });
///You can listen with StreamBuilder to update ui
 StreamBuilder(
     stream: _hoverUssd.onTransactiontateChanged,
        builder: (BuildContext context, AsyncSnapshot snapshot) {
                  
          return Text("no transaction");
   },
);

copied to clipboard

Features #

  • ✅ start a transaction
  • ✅ listen for result
  • ✅ customization
  • ❌ translation

Important #

  • Production ready
  • This is a unofficial plugin

Maintainers #

23
likes
0
points
34
downloads

Publisher

verified publisherlucdotdev.me

Weekly Downloads

2024.09.30 - 2025.04.14

A flutter plugin to make payments by usehover.com ussd gateway using Android Intent and receiving the transaction information back in response.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on hover_ussd