paytech 0.0.4 copy "paytech: ^0.0.4" to clipboard
paytech: ^0.0.4 copied to clipboard

outdated

Paytech SDK for flutter

PayTech #

Installation #

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

dependencies:
  paytech: ^0.0.4

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 = "https://paytech.sn/payment/checkout/729b3e3021226cd27905";

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

 if(paymentResult){
    Scaffold.of(context).showSnackBar(new SnackBar(
        content: Text("Payment success")
    ));
  }
  else{
    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 (moussa.ndour@intech.sn / +221772457199) contact@paytech.sn https://intech.sn https://paytech.sn

License #

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

7
likes
0
points
132
downloads

Publisher

unverified uploader

Weekly Downloads

Paytech SDK for flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_webview_plugin, url_launcher

More

Packages that depend on paytech