paystack_flutter_sdk
0.0.1-alpha.2, released 2 years ago by paystack.com
Paystack Flutter plugin for accepting card and MPesa payments on Android and iOS.
What it does
Allows Flutter apps to initialize the Paystack SDK and launch native payment flows for processing customer transactions. Supports multiple channels including cards and MPesa depending on the platform.
AI-written summary of version 0.0.1-alpha.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to accept payments using Paystack in your Flutter app.
- Your target platforms are Android and iOS.
Skip it when
- You need support for web, desktop, or macOS.
- You require an alternative payment gateway like Stripe or Adyen.
Strengths
- Native view support for both Android and iOS.
- Supports multiple payment channels like cards and MPesa.
Weaknesses
- Requires manual Android setup to change FlutterActivity to FlutterFragmentActivity.
- Currently in alpha stage (version 0.0.1-alpha.2).
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires Android SDK minimum 23, Compile SDK 34, and changing FlutterActivity to FlutterFragmentActivity in the Android MainActivity.
final _paystack = Paystack();
initialize(String publicKey) async {
final response = await _paystack.initialize(publicKey, true);
}
launch() async {
final response = await _paystack.launch(_accessCode);
if (response.status) {
print(response.reference);
}
}Alternatives
Packages that do the same job and could replace paystack_flutter_sdk.
- flutter_stripe
Choose this if you prefer Stripe over Paystack for processing payments.
92Compare - adyen_checkout
Choose this if you want to use Adyen instead of Paystack for payment processing.
86Compare
Works with
Packages commonly used together with paystack_flutter_sdk: ones it builds on, ones built on it, and its own family.