msitef_payment_tech 3.0.0
msitef_payment_tech: ^3.0.0 copied to clipboard
Flutter plugin for Android that integrates your app with the m-SiTef TEF app (Software Express) via intent - credit, debit, PIX, voucher, refund and reprint.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:msitef_payment_tech/msitef_payment_tech.dart';
import 'payment/payment_page.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await MSitefPaymentTech.I.initPayment();
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: DefaultTabController(
length: 2,
child: Scaffold(
appBar: AppBar(
title: const Text('MSitef Payment Tech'),
bottom: const TabBar(tabs: [
Tab(
child: Text("Vender"),
),
Tab(
child: Text("Transações"),
)
]),
),
body: TabBarView(
children: [
const PaymentPage(),
Container(),
],
),
),
),
);
}
}