Skip to content
pubscout

pay_with_paystack

2.0.0, released 3 weeks ago by an unverified publisher

Flutter plugin for Paystack payments via WebView using public keys.

WASM-readyUnverified publisher
$ flutter pub add pay_with_paystack
Source repository

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.

Works with

Packages commonly used together with pay_with_paystack: ones it builds on, ones built on it, and its own family.