搜索插件、代码仓与 APP 分类

插件详情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 轻松实现支付功能,设置简单。该包处理令牌化和安全交易处理,确保符合行业标准。适用于电子商务应用、订阅服务以及任何需要应用内支付功能的应用。

适合场景

  • 电子商务应用
  • 订阅计费
  • 应用内购买
  • 数字服务付款
  • 在线票务

主要特点

  • 安全的信用卡支付
  • 跨平台支持
  • 轻松集成
  • 已标记的交易
  • 实时支付状态

适合对象

  • 移动电子商务应用
  • 基于订阅的服务
  • 数字产品卖家
  • 支付集成平台
  • 使用 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 项

源码仓库

使用此插件的项目

暂无相关数据。