paymob_flutter 0.0.1 copy "paymob_flutter: ^0.0.1" to clipboard
paymob_flutter: ^0.0.1 copied to clipboard

A Flutter SDK for Paymob payment gateway. Supports Card, Wallet, and Kiosk payments.

paymob_flutter #

A Flutter SDK for Paymob payment gateway. Supports Card payments via WebView.

Installation #

dependencies:
  paymob_flutter: ^0.0.1

Usage #

import 'package:paymob_flutter/paymob_flutter.dart';

final result = await Paymob.pay(
  context: context,
  config: PaymobConfig(
    apiKey: 'YOUR_API_KEY',
    integrationId: 123456,
    iframeId: 789,
    isSandbox: true,
  ),
  order: PaymobOrder(
    amount: 100.0,
    currency: 'EGP',
    items: [
      OrderItem(name: 'Product', amount: 100.0, quantity: 1),
    ],
  ),
  billing: BillingData(
    firstName: 'John',
    lastName: 'Doe',
    email: 'john@example.com',
    phone: '+201234567890',
  ),
);

if (result.isSuccess) {
  print('Payment ID: ${result.transactionId}');
}

PaymobConfig Parameters #

Parameter Type Required Description
apiKey String Your Paymob API Key
integrationId int Card integration ID
iframeId int Iframe ID from dashboard
isSandbox bool Default: true

Getting Paymob Credentials #

  1. Go to Paymob Dashboard
  2. API Key → Settings → Account Info
  3. Integration ID → Developers → Payment Integrations
  4. Iframe ID → Developers → Iframes
7
likes
150
points
155
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter SDK for Paymob payment gateway. Supports Card, Wallet, and Kiosk payments.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, flutter, webview_flutter

More

Packages that depend on paymob_flutter