flutter_epay 1.0.0
flutter_epay: ^1.0.0 copied to clipboard
A Flutter package for integrating ePay payments via WebView.
example/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_epay/index.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GPay(
secretKey: "your_secret_key",
appKey: "your_app_key",
child: MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text("ePay Example")),
body: Center(
child: ElevatedButton(
onPressed: () {
final gpay = useGPay(context);
gpay.initiatePayment(100, context);
},
child: const Text("Pay Now"),
),
),
),
),
);
}
}