DigetPay for Flutter

DigetPay — pure-Dart hosted checkout for Flutter

pub version pub points pub likes platforms license: MIT

Accept card payments in your Flutter app in minutes. DigetPay defaults to a hosted, PCI-safe WebView checkout — raw card data never passes through your app, so you keep your PCI scope small — plus a full REST API for money movement, recurring charges, and transaction history. Pure Dart, built on http and webview_flutter; no native code to write or register.

await DigetPaySdk.checkout()
    .setOrder(DigetPaySaleOrder(id: orderId, description: 'Coffee', currency: 'SAR', amount: 15))
    .setPayer(payer)
    .onTransactionSuccess((res) => print('Paid ✓ ${res.transactionId}'))
    .onTransactionFailure((res) => print('Failed: ${res.declineReason}'))
    .onDismiss(() => print('User cancelled'))
    .start(context);

Contents

Install

dependencies:
  digetpay_plugin: ^0.6.0
flutter pub add digetpay_plugin

Quick start

Initialize once at startup, then call the static API anywhere:

import 'package:digetpay_plugin/digetpay_plugin.dart';

DigetPaySdk.initialize(
  apiKey: '<your-mobile-api-key>',
  baseUrl: kDigetPayDefaultBaseUrl, // sandbox: https://fin-api.digetpay.com/v1
  // production: https://api.digetpay.com/v1
);

Every call before initialize() throws DigetPaySdkIsNotInitializedException.

initialize() has no re-entrancy guard — call it again (e.g. after a user picks a different environment or updates their API key) to reconfigure the SDK at any time.

That's it — you're ready to open the checkout.

What you can do

Every endpoint in the DigetPay integration collection, and the DigetPaySdk method that calls it (paths are relative to {{baseUrl}}):

DigetPaySdk method Endpoint Purpose
checkout() POST /v1/payment/checkout/intiate Hosted, PCI-safe checkout in a WebView — the payer picks card, Apple Pay, or Tamara
getCheckoutSessionTransaction(sessionId) GET /v1/payment/checkout/{sessionId}/transaction The payment made against a checkout session — see below
sale(request) POST /v1/payment/s2s/sale Headless card sale — ⚠️ widens PCI scope, see below
authorize(request) POST /v1/payment/s2s/sale (auth: "Y") Headless card authorization (hold) — ⚠️ widens PCI scope
refundS2s(transactionId:, amount:) POST /v1/payment/s2s/refund Full or partial refund of an S2S payment
tokenizationSale(request) POST /v1/payment/s2s/tokenization/sale Charge a card saved with saveToken — see below
getPaymentStatus(id) GET /v1/payment/s2s/transaction/{transactionId} Status of an S2S payment — see below
applePay(request) POST /v1/payment/s2s/sale (paymentMethod: "applepay") In-app Apple Pay with a device token — needs your own Apple Pay setup, see below
tamaraSale(request) POST /v1/payment/s2s/sale (paymentMethod: "tamara") Tamara buy-now-pay-later — see below

completePayment(context, response, ...) presents an S2S response's 3-D Secure / redirect page and resolves the final outcome — see below.

Renamed in 0.6.0 (old names still work, deprecated): cardPay() → checkout() (builder class CardPay → HostedCheckout), externalPayment() → tamaraSale().

Other endpoints (not in the integration collection)
Method Purpose
payCheckoutSession(...) Pay an existing session & enroll a recurring plan — ⚠️ widens PCI scope, see below
getCheckoutStatus(sessionId) Confirm a checkout's outcome via /sdk/status (single transaction)
getStatusCheckout(sessionId) A session's transactions, paginated
getCheckoutSessions([filter]) List your checkout sessions (paginated)
getTransactionById(id) Full transaction details by gateway transaction id
getTransactionHistory([filter]) List raw transaction records (paginated)
capture · voidd Move money on an existing transaction
refundCheckout(...) Refund a hosted-checkout payment
recurringCheckout(request) Charge a hosted-checkout recurringToken (recurringS2s is deprecated — use tokenizationSale)
getRecurringSubscriptions([filter]) · chargeSubscription(...) Saved-card billing plans
🚧 Not yet available Behaviour
getTransactionByOrderId · getTransactionByRrn Throws UnsupportedError — no endpoint yet

checkout() opens DigetPay's hosted page, where the payer chooses card, Apple Pay, or Tamara. No payment data passes through your app.

await DigetPaySdk.checkout()
    .setOrder(DigetPaySaleOrder(
      id: orderId, description: 'Coffee', currency: 'SAR', amount: 15))
    .setPayer(DigetPayPayer(
      firstName: 'Demo', lastName: 'User', address: 'Riyadh',
      country: 'SA', city: 'Riyadh', zip: '00000',
      email: 'demo@example.com', phone: '+966500000000'))
    // .setResultUrls(...) is optional — omit to use the SDK defaults.
    .onSessionCreated((sessionId) { /* keep for getCheckoutSessionTransaction() */ })
    .onTransactionSuccess((res) { /* res.status, res.transactionId ... */ })
    .onTransactionFailure((res) { /* res.declineReason, res.errorCode */ })
    .onDismiss(() { /* user backed out */ })
    .start(context);

start() calls POST /payment/checkout/intiate, opens the returned redirectUrl in a WebView and — once the hosted page reaches a result page — confirms the outcome with GET /payment/checkout/{sessionId}/transaction (falling back to GET /sdk/status?sessionId=, then to the result page's URL) and dispatches success or failure. Exactly one callback fires. The response handed to your callback exposes the typed record via response.paymentDetails.

Flutter app
  │  DigetPaySdk.checkout()…start(context)
  ▼
POST /payment/checkout/intiate  ──▶  { id, redirectUrl }
  │  push CheckoutPage → load redirectUrl
  ▼
WebView (hosted card form + 3-D Secure)
  │
  ├─ reaches a result page ──▶ GET /payment/checkout/<id>/transaction  (authoritative)
  │        │                     (fallback: GET /sdk/status?sessionId=<id>)
  │        ├─ SUCCESS / APPROVED ─▶ onTransactionSuccess(res)
  │        └─ otherwise          ─▶ onTransactionFailure(res)
  │
  └─ user backs out (no result page) ──▶ onDismiss()
  • intiate is spelled that way on the backend — kept verbatim so the docs match the actual wire call (it is not a typo in your code).
  • The status response is authoritative — the SDK does not trust the result URL alone, because the gateway can route to /success briefly before settling on /failure.

Direct (S2S) card sale

⚠️ PCI scope. checkout() is the recommended default — raw card data never passes through your app. sale() is an explicit opt-in for a headless integration: your app collects the PAN/CVV directly, which widens your PCI-DSS scope. Only use it if you've independently assessed that tradeoff.

final response = await DigetPaySdk.sale(
  SaleRequest(
    orderId: orderId,
    amount: 15,
    currency: 'SAR',
    auth: false, // true → authorization-only hold instead of a sale
    customer: Customer(
      name: 'Demo User',
      email: 'demo@example.com',
      phone: '+966500000000',
    ),
    successUrl: 'https://example.com/success',
    failureUrl: 'https://example.com/failure',
    card: CardDto(
      cardNumber: '4111111111111111',
      cardHolder: 'Demo User',
      cardExpiryMonth: '12',
      cardExpiryYear: '2030',
      cardCvv: '123',
    ),
  ),
);

sale() POSTs to /payment/s2s/sale. The integrity hash the backend requires is computed automatically — MD5 of reverse(email) + apiKey + reverse(first6+last4 of the card number), uppercased — from customer.email, card.cardNumber, and your configured API key. You never need to compute or pass it yourself (set SaleRequest.hash only if you need to override it, e.g. for auditing). The hash, PAN, and CVV are never logged.

Call DigetPaySdk.authorize(request) with the same SaleRequest to place an authorization-only hold instead of an immediate sale — response.action reads "SALE" or "AUTH" accordingly. Set saveToken: true to save the card for later tokenized charges.

SaleRequest.recurringInit is deprecated — the backend now reads saveToken. Setting recurringInit: true still works: it is sent as saveToken: "Y".

Completing 3-D Secure & redirects

Most S2S payments are not final in the first response: it comes back PENDING with a 3-D Secure collector page (response.html) and/or a response.redirectUrl (the backend's redirect_url). completePayment() handles both — it opens the page in a CheckoutPage WebView, waits for the success/failure return URL, then confirms the authoritative outcome with getPaymentStatus():

final completion = await DigetPaySdk.completePayment(
  context,
  response,
  successUrl: successUrl, // the same URLs passed on the request
  failureUrl: failureUrl,
);

switch (completion.outcome) {
  case PaymentOutcome.approved:  // paid
  case PaymentOutcome.declined:  // failed / declined / cancelled
  case PaymentOutcome.pending:   // not final yet — poll getPaymentStatus() or wait for your webhook
  case PaymentOutcome.dismissed: // payer closed the page before finishing
}
final details = completion.details; // PaymentDetails — card, gateway txn, amounts…

It works the same for sale(), tokenizationSale(), and tamaraSale(). When no WebView step is needed (e.g. a synchronous tokenized charge), it resolves straight from the response.

Saved cards & tokenized charges

Send a sale() with saveToken: true, and the response's card carries a reusable token (TKN-…). Charge it again later with tokenizationSale() — no card data, and no integrity hash:

final sale = await DigetPaySdk.sale(SaleRequest(/* … */ saveToken: true));
final completion = await DigetPaySdk.completePayment(
  context, sale, successUrl: successUrl, failureUrl: failureUrl,
);
final token = completion.details?.card?.token ?? sale.card?.token;
// Store `token` server-side — it is a reusable payment credential.

final charge = await DigetPaySdk.tokenizationSale(
  TokenizationSaleRequest(
    orderId: 'ORD-1002',
    amount: 20,
    currency: 'SAR',
    token: token!,
    successUrl: 'https://example.com/success',
  ),
); // POST /payment/s2s/tokenization/sale

print(charge.paymentDetails?.isApproved); // typically SUCCESS synchronously

⚠️ Treat PaymentCard.token like a card number: store it server-side, never log it, and never show it in the UI.

Tamara (pay later)

tamaraSale() starts a Tamara buy-now-pay-later payment — an S2S sale with no card data. The integrity hash (MD5 of reverse(email) + apiKey + reverse(orderId), uppercased) is computed automatically. The response carries a redirectUrl to Tamara's page; present it with completePayment():

final response = await DigetPaySdk.tamaraSale(
  TamaraSaleRequest(
    orderId: orderId,
    amount: 125.52,
    currency: 'SAR',
    customer: const Customer(
      name: 'Demo User',
      email: 'demo@example.com',
      phone: '+966500000000',
    ),
    successUrl: 'https://example.com/success',
    failureUrl: 'https://example.com/failure',
  ),
); // POST /payment/s2s/sale with paymentMethod: "tamara"

final completion = await DigetPaySdk.completePayment(
  context, response,
  successUrl: 'https://example.com/success',
  failureUrl: 'https://example.com/failure',
);

Apple Pay (S2S)

applePay() charges an Apple Pay token taken in your own app. If you just want payers to be able to use Apple Pay, the hosted checkout() page already offers it, with no Apple setup on your side.

What you need from Apple

Apple encrypts every Apple Pay token for one merchant's certificate. Before applePay() can charge, set up:

  1. Apple Developer Program membership (paid).
  2. A Merchant ID — Certificates, Identifiers & Profiles → Identifiers → Merchant IDs, e.g. merchant.com.yourcompany.app.
  3. A Payment Processing Certificate for that Merchant ID, created from a CSR provided by DigetPay. Upload DigetPay's CSR to Apple, download the .cer, and send it back to DigetPay so it can decrypt your tokens.
  4. The Apple Pay capability — in Xcode, open Runner → Signing & Capabilities, add Apple Pay, and tick your Merchant ID. This adds the com.apple.developer.in-app-payments entitlement.
  5. A real iPhone for testing, signed in with an Apple sandbox tester account that has one of Apple's test cards in Wallet. Simulator tokens can't be decrypted.

Apple's App Review rules require an official Apple Pay button design.

1. Get the token from Apple's payment sheet

DigetPay doesn't ship native code. Use any PassKit integration — for example the pay package, added to your app:

import 'package:pay/pay.dart';

const applePayConfig = '''{
  "provider": "apple_pay",
  "data": {
    "merchantIdentifier": "merchant.com.yourcompany.app",
    "displayName": "Your Store",
    "merchantCapabilities": ["3DS", "debit", "credit"],
    "supportedNetworks": ["mada", "visa", "masterCard"],
    "countryCode": "SA",
    "currencyCode": "SAR"
  }
}''';

ApplePayButton(
  paymentConfiguration: PaymentConfiguration.fromJsonString(applePayConfig),
  paymentItems: const [
    PaymentItem(label: 'Total', amount: '1.00', status: PaymentItemStatus.final_price),
  ],
  type: ApplePayButtonType.buy,
  onPaymentResult: (result) => payWithDigetPay(ApplePayToken.fromPayResult(result)),
  loadingIndicator: const CircularProgressIndicator(),
);

Check that your pay version lists mada among its supported networks. mada cards are essential for payers in Saudi Arabia.

ApplePayToken.fromPayResult(result) reads the pay result (token + transactionIdentifier). If your native code already has the token as JSON, use ApplePayToken.fromMap({...}) instead.

2. Send it with applePay()

Future<void> payWithDigetPay(ApplePayToken token) async {
  final response = await DigetPaySdk.applePay(
    ApplePaySaleRequest(
      orderId: orderId,
      amount: 1,          // must equal the amount on the Apple Pay sheet
      currency: 'SAR',
      token: token,
      customer: const Customer(
        name: 'Test Customer',
        email: 'customer@example.com',
        phone: '966512345678',
      ),
      successUrl: 'https://example.com/success',
      failureUrl: 'https://example.com/failure',
    ),
  ); // POST /payment/s2s/sale

  final completion = await DigetPaySdk.completePayment(
    context, response,
    successUrl: 'https://example.com/success',
    failureUrl: 'https://example.com/failure',
  );
  print(completion.outcome); // approved / declined / pending
}

The SDK builds the backend body for you:

{
  "orderId": "ORDER-APPLE-001",
  "amount": 1,
  "currency": "SAR",
  "paymentMethod": "applepay",
  "auth": "N",
  "applePayToken": {
    "paymentData": {
      "version": "EC_v1",
      "data": "…",
      "signature": "…",
      "header": {
        "ephemeralPublicKey": "…",
        "publicKeyHash": "…",
        "transactionId": "…"
      }
    },
    "transactionIdentifier": "…"
  },
  "customer": { "name": "…", "email": "…", "phone": "…" },
  "successUrl": "…",
  "failureUrl": "…",
  "hash": "…"
}

The integrity hash is computed automatically — an uppercase MD5 of reverse(email) + apiKey + reverse(transactionIdentifier), uppercased before hashing. Set auth: true on the request for an authorization-only hold. The token is never logged; treat it as sensitive and never store it.

Payment status

Two lookups return the same typed PaymentDetails record (status, ids, masked card, gateway transaction, amount breakdown, suppliers, webhook event):

// Any S2S payment — by DigetPay transactionId (UUID) or gateway paymentId:
final details = await DigetPaySdk.getPaymentStatus(id);
// GET /payment/s2s/transaction/{id}

// The payment made against a hosted-checkout session:
final sessionPayment =
    await DigetPaySdk.getCheckoutSessionTransaction(sessionId);
// GET /payment/checkout/{sessionId}/transaction

if (details?.isApproved ?? false) { /* status == SUCCESS */ }

Both return null on 404, a network error, or an error response. checkout() uses getCheckoutSessionTransaction's endpoint first to confirm a hosted checkout, falling back to /sdk/status.

Paying a checkout session

payCheckoutSession() pays an existing checkout session with card details you collected yourself, enrolling the card into a recurring plan at the same time. Build the body with the constructor matching the plan you want:

⚠️ PCI scope. Like sale(), this carries raw card data through your app. Prefer checkout() unless you have independently assessed PCI-DSS compliance.

// Charge now, and save the card for later on-demand charges:
final response = await DigetPaySdk.payCheckoutSession(
  sessionId: sessionId,
  request: const CheckoutPayRequest.unscheduled(
    amount: 100,
    cardNumber: '5123450000000008',
    cardHolderName: 'Fares Mohamed',
    cardExpiryMonth: '01',
    cardExpiryYear: '2039',
    cardCvv: '100',
    email: 'customer@example.com',
  ),
);

// …or split the session across a fixed schedule:
const scheduled = CheckoutPayRequest.scheduled(
  frequency: CheckoutBillingFrequency.weekly, // MONTHLY or WEEKLY
  installments: 8,
  cardNumber: '5123450000000008',
  cardHolderName: 'Fares Mohamed',
  cardExpiryMonth: '01',
  cardExpiryYear: '2039',
  cardCvv: '100',
  email: 'customer@example.com',
);

The response usually carries a 3-D Secure collector page — present it in a CheckoutPage (see also completePayment() for S2S payments):

if (response.needs3ds) {
  // present response.html in a CheckoutPage(html: ...)
}

To read back everything recorded against a session, getStatusCheckout() hits GET /payment/checkout/status and answers with a page of transactions:

final page = await DigetPaySdk.getStatusCheckout(sessionId);
for (final txn in page?.content ?? const <Transaction>[]) {
  print('${txn.transactionType}: ${txn.paymentStatus}');
}

getStatusCheckout() vs getCheckoutStatus() — they are different endpoints, not aliases. getCheckoutStatus() hits /sdk/status and resolves a single Transaction; getStatusCheckout() hits /payment/checkout/status and returns a PageDto<Transaction>.

Transaction history & lookup by id

getTransactionById(id) fetches full details for a single transaction by its gateway transaction id (GET /payment/transactions/digetpay/{id}/details), including its businessUnitHierarchy. getTransactionHistory([filter]) lists raw transaction records the same way, paginated:

final txn = await DigetPaySdk.getTransactionById(gatewayTransactionId);

final history = await DigetPaySdk.getTransactionHistory(
  // pageNumber is 0-based — the first page is 0.
  const TransactionFilter(pageNumber: 0, pageSize: 30, status: 'SUCCESS'),
);

Which method do I use? getCheckoutSessions() lists checkout sessions (PageDto<CheckoutSession>); getTransactionHistory() lists raw transactions (PageDto<Transaction> — purchases, recurring charges, and refunds all appear here). They are not interchangeable — pick based on which shape you need.

Listing checkout sessions

getCheckoutSessions() returns a paginated PageDto<CheckoutSession> from GET /payment/checkout/sessions:

final page = await DigetPaySdk.getCheckoutSessions(
  const CheckoutSessionFilter(page: 1, limit: 20),
);

for (final session in page?.content ?? const <CheckoutSession>[]) {
  print('${session.merchantOrderId} · ${session.amount} ${session.currency} · ${session.status}');
}

⚠️ Which id do I use?

A CheckoutSession carries two ids. For capture · refundCheckout · voidd, always use session.gatewayTransactionId — not session.id (which identifies the checkout session, not the transaction).

// ✅ correct — these sessions were paid via hosted checkout, so use the Checkout variant
await DigetPaySdk.refundCheckout(transactionId: session.gatewayTransactionId!, amount: session.amount!);
// ❌ wrong — session.id is NOT a transaction id

PageDto exposes content, number (the backend's 1-based page), size, totalElements, totalPages, first, and last.

Money movement

Operate on an existing transaction by its transaction id (no card data involved):

await DigetPaySdk.capture(transactionId: id, amount: 10); // POST /payment/s2s/capture
await DigetPaySdk.voidd(id);                              // POST /payment/s2s/void

Refunds have two endpoints — pick the one matching how the payment was taken, so the refund lands on the right rail:

// Charged with sale() — the direct/S2S rail (transactionId or paymentId):
final refund = await DigetPaySdk.refundS2s(transactionId: id, amount: 10); // POST /payment/s2s/refund
print('${refund.refundId} / ${refund.referenceId}');

// Charged with checkout() — the hosted-checkout rail:
await DigetPaySdk.refundCheckout(transactionId: id, amount: 10); // POST /payment/refund

refund(...) still works and is not deprecated — it is shorthand for refundCheckout(...), exactly the endpoint it has always used. Prefer the explicit names in new code so the target is obvious at the call site.

These return a typed DigetPayResponse. HTTP errors and declines come back as an unsuccessful response — they do not throw:

DigetPayResponse Meaning
isSuccess 2xx and not declined/failed
status / result Gateway status text
transactionId · paymentId · orderId · rrn Identifiers
refundId · referenceId Refund identifiers
action · cardBrand · card · resultUrl S2S sale details (card.token when saveToken was set)
html · redirectUrl · needsRedirect A 3-D Secure / redirect step — see completePayment
paymentDetails The typed PaymentDetails record, when the body carries one
message · errorCode · declineReason Failure detail
data The raw decoded payload (for anything not typed above)

Recurring charges & subscriptions

A recurring charge reuses a recurringToken from an earlier hosted-checkout transaction — no card data involved:

final request = RecurringRequest(
  transactionId: initialTransactionId,
  orderId: 'ORD-2025-887899',
  recurringToken: recurringToken,
  amount: 100,
  currency: 'SAR',
  // Optional — when supplied it is nested verbatim as the `order` object;
  // omit it and the key is left out of the request body entirely.
  order: const Order(
    number: 'ORD-2025-887899',
    amount: 100,
    currency: 'SAR',
    description: 'Monthly subscription payment',
  ),
);

// Token from a hosted checkout (see Transaction.recurringToken):
await DigetPaySdk.recurringCheckout(request); // POST /payment/checkout/recurring

recurringS2s(...) is deprecated. To charge a card again after a sale(), send the sale with saveToken: true and use tokenizationSale().

recurring(...) still works and is not deprecated — it is shorthand for recurringCheckout(...), exactly the endpoint it has always used.

For saved-card billing plans (subscriptions), list them and charge one on demand — again, no card data needed, the subscription's saved token is charged server-side:

final page = await DigetPaySdk.getRecurringSubscriptions(
  const RecurringSubscriptionFilter(page: 1, limit: 20),
);

for (final sub in page?.content ?? const <RecurringSubscription>[]) {
  if (sub.isCompleted) continue;
  final result = await DigetPaySdk.chargeSubscription(
    subscriptionId: sub.id!,
    amount: 50,
    email: 'customer@example.com',
  );
  print(result?.isSuccess); // SubscriptionChargeResult — a flat, non-enveloped body
}

Handling transaction data

getCheckoutStatus returns a typed Transaction? (a DECLINED transaction is still returned — inspect paymentStatus). Some fields are sensitive; the SDK delivers them to you but never logs them:

  • pan — already masked by the backend (4323 2** **** 0853); safe to show.
  • cardHolderName — PII; display it, but don't log/persist broadly.
  • recurringToken — sensitive: it can initiate future charges. Keep it server-side, never log it, and don't surface it in the UI.

Debug logging

Pass an optional logger to initialize for a redacted, step-by-step trace — HTTP method + path + status, checkout milestones, and the terminal outcome. It never receives the API key, card data, request/response bodies, or query values.

import 'dart:developer' as developer;

DigetPaySdk.initialize(
  apiKey: '<key>',
  logger: (message) => developer.log(message, name: 'DigetPay'),
);
💳 checkout: creating session for order 6f… (15.0 SAR)
➡️ → POST /payment/checkout/intiate
⬅️ ← 201 OK POST /payment/checkout/intiate {code=201, session=ab02…, redirect=https://fin-admin.digetpay.com/pay/checkout}
🌐 webview → https://fin-admin.digetpay.com/pay/checkout/success
➡️ → GET /sdk/status?sessionId
⬅️ ← 200 OK GET /sdk/status {code=200, status=APPROVED, txn=070ae…, msg=Success}
✅ checkout: APPROVED → onTransactionSuccess

Leave logger unset (the default) for zero logging in production.

Platform setup

Pure-Dart plugin — no native code to write. You only need standard network/WebView configuration.

Android

  • minSdkVersion 24 (Android 7.0) in android/app/build.gradle.

  • INTERNET permission in android/app/src/main/AndroidManifest.xml (the release manifest does not include it automatically):

    <uses-permission android:name="android.permission.INTERNET"/>
    

iOS

  • Deployment target iOS 13.0+ in ios/Podfile and the Runner target.
  • DigetPay endpoints and the hosted page are served over HTTPS, so the default App Transport Security policy works with no changes. Avoid a blanket NSAllowsArbitraryLoads in production.

Hosted checkout targets Android and iOS (via webview_flutter); Flutter web and desktop are not supported in this version.

Security — mobile API key

DigetPayConfig.apiKey is embedded in your app binary, and anything shipped in a mobile app can be extracted. Always initialize with a publishable / restricted mobile key scoped to client operations — never a full server secret. Rotate the key if it is ever exposed, and keep privileged operations behind your own server.

For card entry, prefer checkout() — raw card data never touches your app process, so your PCI scope stays small. sale() is an explicit, opt-in exception to that: it carries raw PAN/CVV through your app, which widens your PCI-DSS scope. Only reach for it if you've independently assessed that tradeoff for your integration.

Not yet available

getTransactionByOrderId and getTransactionByRrn throw UnsupportedError until the corresponding backend endpoints exist (see the TODO(endpoint) markers in the source). getTransactionByOrderId — list sessions with getCheckoutSessions() and match on CheckoutSession.merchantOrderId, or filter getTransactionHistory() instead.


MIT © DigetPay · Issues & source: https://github.com/DigetPay/digetpay_plugin

Libraries

digetpay_plugin
DigetPay — pure-Dart Flutter payment plugin.