fluid_sdk 0.1.5 copy "fluid_sdk: ^0.1.5" to clipboard
fluid_sdk: ^0.1.5 copied to clipboard

A Flutter package for handling payment flows

Fluid SDK #

A Flutter package for handling payment flows.

Features #

  • 🔄 Payment flow management
  • 💳 Multiple payment methods support
  • 🎨 Customizable UI interface
  • 📱 Cross-platform support (iOS & Android)

Installation #

Add the dependency to your pubspec.yaml:

dependencies:
  fluid_sdk: ^0.1.0

Getting Started #

1. Initialize SDK #

import 'package:fluid_sdk/fluid_sdk.dart';

void main() async {
  await initialize(
    FluidEnv.test,
    'YOUR_API_KEY',
    AssetImage('images/your_logo.png'), // Optional logo
  );
  runApp(MyApp());
}

2. Launch Payment Flow #

// Launch payment flow
final result = await launchPayment(context, 'payment_ticket');

if (result != null) {
  // Handle payment result
  print('Payment status: ${result.status}');
}

Environment Configuration #

The SDK provides predefined environments:

  • FluidEnv.test - Test environment

Main Components #

  • PaymentOrder - Payment order model
  • PaymentMethod - Payment method model
  • PaymentStatus - Payment status enum

Example #

Check the example/ directory for complete usage examples.

License #

This project is licensed under the MIT License.

0
likes
130
points
364
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for handling payment flows

Documentation

API reference

License

MIT (license)

Dependencies

auto_route, built_collection, built_value, decimal, dio, flutter, flutter_svg, image_gallery_saver_plus, intl, logger, permission_handler, pretty_qr_code, provider, url_launcher

More

Packages that depend on fluid_sdk