flutter_payunit 0.0.1
flutter_payunit: ^0.0.1 copied to clipboard
Pay Unit SDK Package facilitates the intergration of payments on your applications with a single button and on the go.
Welcome to The Pay Unit Flutter SDK Seamlessly accept and manage payments in your app
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 payunit_sdk
With Flutter #
flutter pub add payunit_sdk
Manually #
dependencies:
pay_unit_sdk: ^0.0.1
Import package #
import 'package:flutter_payunit/flutter_payunit.dart';
Add the PayUnitButton #
PayUnitButton(
apiUsername: "Your apiuser>",
apiPassword: "<Your apiPassword>",
x_api_key: "<Your apiKey>",
mode: 'live',
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 "payunit_xxxxxxxx"
- Mode : Your Mode can either be test or live.
- Currency : The currency of your transaction : XAF for FCFA or USD for $ ect ...
- 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 who start after the end of the paiement , you can perform some operation here , like display a alertDialog after the end of the payment.
- transactionId and transactionStatus are callBack parameters of the actionAfterProccess function , don't modify them .
Gallery #

Clients #
