flick_payment_sdk 1.0.1 copy "flick_payment_sdk: ^1.0.1" to clipboard
flick_payment_sdk: ^1.0.1 copied to clipboard

A Flutter SDK for Flick Payment processing

Flick Payment SDK (GBP Only) - Flutter Integration Guide #

Overview #

A Flutter SDK for integrating bank payments (Open Banking) in UK applications, allowing users to pay directly from their bank accounts.

Getting Started #

To use this package, add flick_payment_sdk as a dependency in your pubspec.yaml:

Installation #

For installation instructions, please see the Installation tab

dependencies:
  flick_payment_sdk: ^1.0.0

Then run:

```bash
flutter pub get

Example App #

We provide a complete example application demonstrating SDK integration. Check the Example tab

Usage

Basic Implementation

  • Import the package:
import 'package:flick_payment_sdk/flick_payment_sdk.dart';
  • Create an instance of FlickPayment:
final FlickPayment flickPayment = FlickPayment();
  • Initialize the payment with your configuration:
final success = await flickPayment.initialize(
  PaymentConfig(
    customerEmail: 'customer@example.com',
    amount: '500', // Amount in pence (£5.00)
    currency: 'GBP',
    transactionId: 'your-unique-transaction-id',
    bearerToken: 'your-api-bearer-token',
    redirectUrl: 'https://your-redirect-url.com',
  ),
  onPaymentCompleted: (PaymentStatusDetails status) {
    // Handle payment completion
    if (status.transactionStatus.toLowerCase() == 'successful') {
      // Payment successful
    } else {
      // Payment failed
    }
  },
);
  • Add the payment button to your widget tree:
flickPayment.createPaymentButton(context)
0
likes
0
points
65
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter SDK for Flick Payment processing

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, google_fonts, http, shared_preferences, url_launcher

More

Packages that depend on flick_payment_sdk