sumup_api_client 0.1.3 copy "sumup_api_client: ^0.1.3" to clipboard
sumup_api_client: ^0.1.3 copied to clipboard

Enterprise-ready SumUp REST API client for Dart and Flutter. OAuth2, pagination, rate limiting, retry, and caching.

sumup_api_client #

Enterprise-ready SumUp REST API client for Dart and Flutter. OAuth2, pagination, rate limiting, retry, and caching — all with zero code generation at build time.

pub.dev CI Publish Stars License tests


Support this project by purchasing SumUp terminals through our affiliate links for your country:

Features #

  • OAuth2 client_credentials — automatic token fetch, cache, and refresh
  • API Key and Personal Token authentication support
  • Rate limiting — exponential backoff on 429 responses
  • Automatic retry — retries on 5xx, connection, and timeout errors
  • Cursor paginationCursorPaginator<T>.all() stream helper
  • Pluggable token storage — in-memory (Dart-only) or custom implementations (flutter_secure_storage)
  • 10 API services — Checkouts, Customers, Memberships, Members, Merchants, Payouts, Readers, Receipts, Roles, Transactions
  • Zero build_runner — no code generation required

Quick Start #

import 'package:sumup_api_client/sumup_api_client.dart';

void main() async {
  // OAuth2 (recommended)
  final client = SumUpClient.withOAuth2(
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret',
  );

  // API Key (legacy)
  // final client = SumUpClient.withApiKey('sup_sk_...');

  // List transactions
  final result = await client.transactions.listTransactionsV21(
    merchantCode: 'YOUR_MERCHANT_CODE',
  );
  print(result);
}

Installation #

dependencies:
  sumup_api_client: ^0.1.1

Commands #

# Run the CLI example
export SUMUP_API_KEY=sup_sk_...
export SUMUP_MERCHANT_CODE=MESLTVGX
dart run example/bin/main.dart dashboard
dart run example/bin/main.dart transactions
dart run example/bin/main.dart checkouts
dart run example/bin/main.dart readers

License #

AGPL v3 for open-source use. For commercial licensing, contact developers@purplesoft.io.

0
likes
0
points
194
downloads

Publisher

verified publisherpurplesoft.io

Weekly Downloads

Enterprise-ready SumUp REST API client for Dart and Flutter. OAuth2, pagination, rate limiting, retry, and caching.

Repository (GitHub)
View/report issues

Topics

#sumup #payments #api-client #rest

License

unknown (license)

Dependencies

clock, collection, dio, dio_mcache, logging, mcache_dart

More

Packages that depend on sumup_api_client