thepeer_flutter 2.0.0-beta.2 copy "thepeer_flutter: ^2.0.0-beta.2" to clipboard
thepeer_flutter: ^2.0.0-beta.2 copied to clipboard

outdated

Official plugin for using Thepeer SDK with flutter https://thepeer.co

Flutter Thepeer #

This package makes it easy to use the Thepeer in a flutter project.

📸 Screen Shots #

thepeer-one thepeer-two thepeer-three

🚀 How to Use plugin #

  • Launch ThepeerView in a bottom_sheet
import 'package:thepeer_flutter/thepeer_flutter.dart';
    
  void launch() async {
    await ThepeerView(
            data: ThePeerData(
               amount: 10000,
               receiptUrl: '$receiptUrl',
               publicKey: '$publicKey',
               userReference: '$userReference',
            ),
            showLogs: true,
            onClosed: () {
               print('onClosed');
            },
            onSuccess: () {
               final snackBar =
              SnackBar(content: Text('Yay! Your payment was successful'));
              ScaffoldMessenger.of(context).showSnackBar(snackBar);
            },
      ).show(context);
  }

✨ Contribution #

Lots of PR's would be needed to improve this plugin. So lots of suggestions and PRs are welcome.