paystack_payment 0.0.2
paystack_payment: ^0.0.2 copied to clipboard
A Flutter package for integrating Paystack payments with support for channels, metadata, and split payments.
Paystack Payment for Flutter #
A Flutter package to integrate Paystack payments into your app with support for multiple payment channels, custom metadata, and split payments. This package uses Paystack’s Checkout API to provide a seamless payment experience via a WebView.
Features #
- Simple Payment Integration: Initialize and process payments with minimal setup.
- Payment Channels: Restrict payments to specific channels (e.g.,
card,bank,ussd). - Custom Metadata: Attach additional data to transactions (e.g., order IDs).
- Split Payments: Split transaction amounts between your account and subaccounts.
- Consistent Responses: Handle success, error.ConcurrentModificationException, and cancel outcomes with a unified
PaystackResponsemodel. - WebView-Based Checkout: Displays Paystack’s payment UI securely within your app.
Installation #
Add to Your Project #
Add to pubspec.yaml: #
paystack_payment: ^0.0.1
Run flutter pub get #
Import in Dart File: #
dart import 'package:paystack_payment/paystack_payment.dart';