A Flutter plugin for payments with Paystack using a WebView.
=========================================
=========================================
To use this package, add in pubspec.yaml
flutter_paystack_webview:
git: https://github.com/faithomotoso/flutter_paystack_webview.gitYou can use this plugin either as a full page or embedded with your own page
...
PaystackWebView(
usingEmbedded: true,
secretKey: "your_secret_key",
customerEmail: "customer@email.com",
amountInNaira: 100,
callbackURL: "https://www.paystack.com",
onTransactionInitialized: (PaystackInitialize paystackInitialize) {
print(paystackInitialize.toString());
},
onTransactionVerified: (verifiedMap, status, reference) async {
print("Transaction verified: $verifiedMap");
},)
...Navigator.push(context, builder: (_) => PaystackWebView(
secretKey: "your_secret_key",
customerEmail: "customer@email.com",
amountInNaira: 100,
callbackURL: "https://www.paystack.com",
onTransactionInitialized: (PaystackInitialize paystackInitialize) {
print(paystackInitialize.toString());
},
onTransactionVerified: (verifiedMap, status, reference) async {
print("Transaction verified: $verifiedMap");
},));