flutter_payunit 0.0.5 copy "flutter_payunit: ^0.0.5" to clipboard
flutter_payunit: ^0.0.5 copied to clipboard

Pay Unit SDK Package facilitates the intergration of payments on your applications with a single button and on the go.

Nest Logo

Welcome to The Pay Unit Flutter SDK Seamlessly accept and manage payments in your app

Pub Version GitHub repo size GitHub issues GitHub Repo stars GitHub forks GitHub code size in bytes Website Twitter Follow Website

Description #

Pay Unit SDK Package facilitates the intergration of payments on your applications with a single button and on the go.

Installation #

Run this command:

With dart #

dart pub add flutter_payunit 

With Flutter #

flutter pub add flutter_payunit

Manually #

dependencies:
  flutter_payunit: ^0.0.4

Import package #

import 'package:flutter_payunit/flutter_payunit.dart';

Add the PayUnitButton #

PayUnitButton(
              apiUsername: "<Your apiuser>",
              apiPassword:  "<Your apiPassword>",
              apiKey: "<Your apiKey>",
              mode: 'live', // live or test
              paymentCountry: '<Transaction country>'
              notifyUrl: "<Your notification url>",
              returnUrl: "<Your return url>",
              totalAmount: "<Your transaction amount>",
              currency:"XAF", 
              buttonTextColor: Colors.white,
              buttonText: "Pay now",
              width: double.infinity
              color: Colors.orange
              actionAfterProccess: (transactionId, transactionStatus) {
               // a callback that has both transaction id and transaction status
              },
          ),

PayUnit Button Parameters #

  • apiUsername : Your apiUsername is provided on your payunit dashboard and looks like "xxxxxx-xxxxxxx-xxxxxx-xxxxxx"
  • apiPassword : Your apiPassword is provided on your payunit dashboard and looks like "xxxxxx-xxxxxxx-xxxxxx-xxxxxx"
  • apiKey : Your application token eg sand_xxxxxx or live_xxxxxx
  • Mode : Your Mode can either be test or live.
  • Currency : The currency of your transaction eg XAF for FCFA
  • buttonTextColor: Custom the color of the text PayUnit button
  • color : Use this to customise the backgroun color of the PayUnit Button
  • actionAfterProccess : here is the action which starts after the end of the payment, you can perform some operation here, like display an alertDialog after the end of the payment.
  • transactionId and transactionStatus are callBack parameters of the actionAfterProccess function, don't modify them .

Gallery #

gallery - Copy

Clients #

clients - Copy
0
likes
160
pub points
14%
popularity

Publisher

unverified uploader

Pay Unit SDK Package facilitates the intergration of payments on your applications with a single button and on the go.

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

auto_size_text, dio, flutter, intl, logger, url_launcher

More

Packages that depend on flutter_payunit