paytech 0.1.2
paytech: ^0.1.2 copied to clipboard

Paytech SDK for flutter

PayTech #

Installation #

Paytech is available through To install it, simply add the following line to your pubspec.yam;:

  paytech: ^0.1.2

Example #

To run the example project, clone the repo, and run flutter pub get from the Example directory first.

Import Paytech Module

import 'package:paytech/paytech.dart';

Use Paytech widget to make a payment.

onPressed: () async{
  var paymentUrl = "";

  bool paymentResult = await Navigator.push(
  MaterialPageRoute(builder: (context) => PayTech(paymentUrl)),

    Scaffold.of(context).showSnackBar(new SnackBar(
        content: Text("Payment success")
    Scaffold.of(context).showSnackBar(new SnackBar(
        content: Text("Payment failed")

PayTech Widget #

You can pass optional additional arguments to PayTech constructor:

  backButtonIcon: IconData, default Icons.arrow_back_ios
  appBarTitle: String, default "PayTech"
  centerTitle: bool, default true
  appBarBgColor: Color,  default Color(0xFF1b7b80)
  appBarTextStyle: TextStyle,  default TextStyle(),
  hideAppBar: bool, default false

Author #

Moussa Ndour ( / +221772457199)

License #

PayTech is available under the MIT license. See the LICENSE file for more info.