pay_with_paystack
2.0.0, released 3 weeks ago by an unverified publisher
Flutter plugin for Paystack payments via WebView using public keys.
What it does
Allows Flutter apps to accept payments through Paystack via an inline WebView or browser tab. Supports card, mobile money, bank transfers, USSD, and split payments using only a public key.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate Paystack payments into your Flutter application.
- You want client-side payment flows using only the public key.
Skip it when
- You do not use Paystack as your payment gateway.
- You want client-side transaction verification without a backend.
Strengths
- Supports multiple payment channels including mobile money and card.
- Eliminates the security risk of embedding secret keys in client code.
- Cross-platform support for Android, iOS, Web, and macOS.
Weaknesses
- Requires a separate backend server to verify transactions securely.
- Relies on WebView implementation for mobile platforms.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Android requires updating the minSdkVersion to at least 19 in build.gradle. No extra iOS configuration required.
import 'package:pay_with_paystack/pay_with_paystack.dart';
final ref = PayWithPayStack().generateUuidV4();
await PayWithPayStack().now(
context: context,
publicKey: '<api-key>',
customerEmail: 'user@example.com',
reference: ref,
currency: 'GHS',
amount: 50.00,
transactionCompleted: (PaymentData data) {
print('Paid: ${data.reference}');
},
transactionNotCompleted: (String reason) {
print('Failed: $reason');
},
);Alternatives
Packages that do the same job and could replace pay_with_paystack.
- flutter_stripe
If you are using Stripe instead of Paystack for payment processing.
92Compare - in_app_purchase
If you need native Apple App Store and Google Play Store billing instead of web payment gateways.
94Compare
Works with
Packages commonly used together with pay_with_paystack: ones it builds on, ones built on it, and its own family.
- uuidpay_with_paystack depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- url_launcherpay_with_paystack depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- webview_flutterpay_with_paystack depends on itFlutter plugin that embeds a native WebView widget.