fundlypay 0.0.5
fundlypay: ^0.0.5 copied to clipboard
A Flutter library by Fundly Pay for seamless and standardized payment integration across multiple payment methods — simplifying invoice collection, reconciliation, and settlement.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:fundlypay/fundlypay.dart';
final fundlyPayObject = {
"credential": {
"username": "demo_user",
"password": "dummy_password_123",
"source": "DEMO_APP",
},
"paymentDetails": {
"distributorId": "D00000000XX",
"chemistId": "R00000000YY",
"paymentType": "INVOICE_COLLECT",
"payableAmount": 1000.0,
"invoice": [
{"invoiceNumber": "INV1001", "paidAmount": 600.0},
{"invoiceNumber": "INV1002", "paidAmount": 400.0},
],
},
};
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'FundlyPay Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Color(0XFF16558B)),
),
home: Scaffold(body: FundlyPayService(fundlyPayObject: fundlyPayObject)),
);
}
}