flutter_yoco 1.0.1 copy "flutter_yoco: ^1.0.1" to clipboard
flutter_yoco: ^1.0.1 copied to clipboard

A simple flutter plugin to integrate Yoco payment gateway into your flutter app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_yoco/flutter_yoco.dart';

void main() {
  runApp(const MyHomePage());
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(),
        body: Column(
          children: [
            FlutterYoco(
              secretKey: '',
              amount: 100.00,
              transactionId: 1000070.toString(),
              successUrl: 'https://misomenze.info/success/',
              cancelUrl: 'https://misomenze.info/cancel/',
              failureUrl: 'https://misomenze.info/failure/',
              onComplete: (transaction) {
                print('Completed: ${transaction.toJson()}');
              },
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
150
points
93
downloads

Publisher

verified publishermisomenze.info

Weekly Downloads

A simple flutter plugin to integrate Yoco payment gateway into your flutter app.

Repository (GitHub)
View/report issues

Topics

#payment #yoco #paystack #stripe #paypal

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, webview_flutter

More

Packages that depend on flutter_yoco