v0.0.1+1
paymob_payment
Paymob를 사용하여 Flutter 앱에서 온라인 카드를 통해 결제를 쉽게 수락하세요.
39좋아요 330일 다운로드150Pub 점수
AndroidiOSmacOS
Paymob 결제 플러그인.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Easily accept payments through Online Cards in your Flutter app with Paymob.

Add this to dependencies in your app's pubspec.yaml
paymob_payment : latest_version
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,
);
final PaymobResponse? response = await PaymobPayment.instance.pay(
context: context,
currency: "EGP",
amountInCents: "20000", // 200 EGP
onPayment: (response) => setState(() => this.response = response), // Optional
)
| 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 |
| Variable | Description |
|---|---|
| Card Number | 5123456789012346 |
| Expiry Month | 12 |
| Expiry Year | 30 |
| CVV | 123 |
Change cvv to 111 or expiry year to 20
:pushpin: Note :
May be you have to contact paymob support to activate your test card
의존성 목록 5 개
^5.2.1+1^4.2.2{"sdk":"flutter"}{"sdk":"flutter"}^2.0.2사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗