fayaalma_checkout 0.0.3 fayaalma_checkout: ^0.0.3 copied to clipboard
Page checkout du plateforme de paiement Fayaalma de DAARATECH CONSULTING.
import 'package:fayaalma_checkout/fayaalma_checkout.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: Scaffold(
body: SafeArea(
child: FayaalmaCheckout(
width: double.infinity,
height: double.infinity,
actifColor: Colors.green.shade600,
inactifColor: Colors.amber,
initCheckOutEntity: CheckOutEntity(
appID: '', //
orderID: '28430',
amount: 40.0,
payerFullName: 'Alioune Badara DIOUF',
productsOrdered: [
ProductEntity(
productName: "Sac En Cuire",
unitPrice: 20.0,
quantity: 1,
),
ProductEntity(
productName: "Iphone 15 Pro",
unitPrice: 20.0,
quantity: 1,
),
],
),
),
),
),
);
}
}