Skip to main content
A modern, type-safe Flutter SDK to integrate Payracle payment links, virtual accounts, and checkout interfaces into your Flutter mobile and web applications.

Features

  • Instant Checkout Widget — a premium centered payment modal with automated background transfer polling and countdown timers.
  • Virtual Account Provisioning — generate persistent virtual bank accounts for your customers directly from your backend or server-side Dart services.
  • Sandbox Simulation — test complete checkout success and failure flows using simulated payments, without moving real money.
  • Robust API Client — complete type-safe network mapping for virtual accounts, checkouts, and transactional queries.

Installation

Add payracle_sdk to your pubspec.yaml:
Then run:

Usage

1. Initialize the client

Configure PayracleClient with your public key and business ID (for client-side checkout), or your secret key (for server-side calls only):
Only the public key (pk_live_... / pk_test_...) is safe to embed in a shipped mobile app. It can only call checkout initialization — never bundle your secret key (sk_live_...) into client-side app code.

2. Display the checkout sheet

PayracleCheckoutSheet handles polling the transaction status in the background and shows a countdown timer until the generated virtual account expires — see Checkout & Dynamic Accounts for what happens behind this call.