パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.1+1

paymob_payment

Paymob を使って、Flutter アプリでオンラインカードによる支払いを簡単に受け入れましょう。

AndroidiOSmacOS
30日間ダウンロード
3
いいね数
39
Pub ポイント
150

パッケージをインストール

flutter pub add paymob_payment

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Paymob Paymentは、モバイルアプリケーションにオンラインカード決済をスムーズに統合できるFlutterパッケージです。Paymobのセキュアな決済ゲートウェイを通じて支払いを受け入れるプロセスを簡素化し、Android、iOS、macOSプラットフォームをサポートしています。開発者は提供されたSDKを使用して、最小限の設定で支払い機能を簡単に実装できます。このパッケージはトークン化と安全な取引処理を管理し、業界基準への準拠を確保します。電子商務アプリ、サブスクリプションサービス、およびアプリ内決済機能が必要なすべてのアプリに最適です。

用途

  • ECアプリ
  • サブスクリプション課金
  • アプリ内購入
  • デジタルサービスの支払い
  • オンラインチケット販売

主な機能

  • セキュアなクレジットカード決済
  • クロスプラットフォーム対応
  • 簡単な統合
  • トークン化された取引
  • リアルタイム決済状態

適している対象

  • モバイルECアプリ
  • サブスクリプションベースのサービス
  • デジタル製品販売者
  • 支払い統合プラットフォーム
  • Paymob を使用する開発者

注意事項

  • Paymobアカウントの設定が必要です
  • 適切な API キーの設定が必要です
  • Paymobがサポートする地域に限定
  • インターネット接続に依存する
  • 追加のバックエンド検証が必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

paymob_payment

Easily accept payments through Online Cards in your Flutter app with Paymob.

Example

:rocket: Installation

Add this to dependencies in your app's pubspec.yaml

paymob_payment : latest_version

:hammer: Initialization

PaymobPayment.instance.initialize(
  apiKey: "", // from dashboard Select Settings -> Account Info -> API Key 
  integrationID: 123456, // from dashboard Select Developers -> Payment Integrations -> Online Card ID 
  iFrameID: 123456, // from paymob Select Developers -> iframes 
);

:pushpin: Note :

You can use this singleton (instance) or Create your own
if you want to create different iFrames or integrations

final PaymobPayment paymobPayment = PaymobPayment();
  paymobPayment.initialize(
  apiKey: "", 
  integrationID: 123456, 
  iFrameID: 123456, 
);

:bookmark: Usage

final PaymobResponse? response = await PaymobPayment.instance.pay(
  context: context,
  currency: "EGP",
  amountInCents: "20000", // 200 EGP
  onPayment: (response) => setState(() => this.response = response), // Optional
)

:incoming_envelope: PaymobResponse

Variable Type Description
success bool Indicates if the transaction was successful or not
transactionID String? The ID of the transaction
responseCode String? The response code for the transaction
message String? A brief message describing the transaction

:test_tube: Testing Cards

:white_check_mark: Successful payment
Variable Description
Card Number 5123456789012346
Expiry Month 12
Expiry Year 30
CVV 123
:negative_squared_cross_mark: Declined payment

Change cvv to 111 or expiry year to 20

:pushpin: Note :

May be you have to contact paymob support to activate your test card

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。