msitef_payment_tech 2.1.0
msitef_payment_tech: ^2.1.0 copied to clipboard
Plugin Flutter para integrar sua aplicação com o SDK Android do MSitef para meios de pagamento.
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(
licenceKey: 'SUA_LICENCE_KEY',
licenceInternalKey: 'SUA_LICENCE_INTERNAL_KEY',
);
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(),
],
),
),
),
);
}
}