Skip to content

Flutter SDK

Official Autlantic Billing mobile Checkout presenter for Flutter. Part of the Autlantic Payments SDK · Languages.

USDC on Base · never put API keys or webhook secrets in the app.

Source: sdks/flutter. Package: autlantic_checkout 0.1.0 on pub.dev.

  • iOS: ASWebAuthenticationSession
  • Android: Chrome Custom Tabs (androidx.browser:browser:1.8.0)

Install

yaml
dependencies:
  autlantic_checkout: ^0.1.0
bash
flutter pub get

API

dart
import 'package:autlantic_checkout/autlantic_checkout.dart';

final result = await AutlanticCheckout.present(
  checkoutUrl, // from YOUR backend
  returnUrlScheme: 'myapp',
);

switch (result.status) {
  case AutlanticCheckoutStatus.completed:
    // iOS: optional result.callbackUrl
    // Android: Custom Tabs opened; handle deep links, then poll YOUR backend
    break;
  case AutlanticCheckoutStatus.canceled:
    break;
  case AutlanticCheckoutStatus.failed:
    // result.message
    break;
}
PieceRole
AutlanticCheckout.present(checkoutUrl, { returnUrlScheme })Opens hosted checkout
AutlanticCheckoutResultcompleted / canceled / failed

Backend contract

  1. Your server creates a session with Node/Python/Go/PHP/Java/.NET (successUrl / cancelUrl like myapp://billing/success).
  2. App calls present with the returned checkoutUrl.
  3. After return, poll your access API. Unlock only after a verified webhook on the server.

Sample: examples/mobile-checkout (pnpm example:mobile).