harbor_pay 1.0.1 copy "harbor_pay: ^1.0.1" to clipboard
harbor_pay: ^1.0.1 copied to clipboard

A Flutter package to accept mobile money payments.

harbor_pay #

A Flutter package to accept mobile money payments.

Getting Started #

First, add the harbor_pay package to your pubspec dependencies.

Import HarborPay #

import 'package:harbor_pay/harbor_pay.dart';

Create a HarborPay object #


HPay hp = new HPay(
    clientId: '123456',
    buttonColors: Colors.black,
    bottomSheetBackgroundColor: Colors.white
);

Process Payment #


var paymentResponse = await
hp.processPayment(context: context, amount: 14.00
,
customerNumber: '
2330000000
'
);
print
(
paymentResponse.toString()
);

// Optional but useful parameter: customerName
// Optional but useful parameter: Map<String, dynamic> extra

paymentResponse from the calls, will contain the following in JSON response:

{
  "success": true,
  "message": ""
}

A success value of true means the payment has actually been processed successfully and no further action has to be taken.

0
likes
120
pub points
14%
popularity

Publisher

verified publisherexcelliumgh.com

A Flutter package to accept mobile money payments.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on harbor_pay