flutter_epay 1.0.0 copy "flutter_epay: ^1.0.0" to clipboard
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"),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for integrating ePay payments via WebView.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, provider, webview_flutter

More

Packages that depend on flutter_epay