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

outdated

A Flutter package to accept mobile / card payments with HarborPay.

harbor_pay #

A Flutter package to accept payments with HarborPay.

Getting Started #

You will need an account on HarborPay to accept payments if you don't already have one.
Create one here to get your clientId and clientKey.

First, add the harbor_pay package to your pubspec dependencies.

Import HarborPay #

import 'package:harbor_pay/harbor_pay.dart';

Initialise HarborPay #

HPay hp = new HPay(
  clientId: '123456',
  clientKey: '456789765435678',
  currency: 'GHS',
  amount: 1.00,
  customerNumber: '2330000000',
  buttonColors: Colors.black
);

Process Payment #

var paymentResponse = await hp.processPayment(context);

From the above, paymentResponse will be in JSON as described below:

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

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

0
likes
0
pub points
7%
popularity

Publisher

verified publisherexcelliumgh.com

A Flutter package to accept mobile / card payments with HarborPay.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on harbor_pay