패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.