flutter_hyperswitch 1.1.0 copy "flutter_hyperswitch: ^1.1.0" to clipboard
flutter_hyperswitch: ^1.1.0 copied to clipboard

Flutter Hyperswitch: Simplifying payment integration for Flutter apps with seamless API interactions and customizable UI.

Flutter Hyperswitch #

Flutter Hyperswitch is a package designed to facilitate payment operations within Flutter applications, providing seamless integration with payment gateways and offering a variety of customization options.

Features #

  • Initiate Payment Sheet: Initialize the payment sheet with customizable parameters.
  • Present Payment Sheet: Display the payment sheet within your Flutter app.

Getting Started #

To use this package in your Flutter project, follow these steps:

Installation #

Add flutter_hyperswitch to your pubspec.yaml file:

yaml
dependencies: flutter_hyperswitch: ^version_number

Then, run:

dart
flutter pub get

Usage #

Import the Package

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

Initialize the payment sheet with required parameters:

dart
// Set up the payment parameters PaymentSheetParams params = PaymentSheetParams( publishableKey: 'your_publishable_key', clientSecret: 'your_client_secret', // Add other required parameters ); // Initialize the payment sheet Map<String, dynamic>? result = await FlutterHyperswitch.initPaymentSheet(params);

Present the payment sheet within your app:

dart
Map<String, dynamic>? result = await FlutterHyperswitch.presentPaymentSheet();

Configuration #

You'll need to configure your backend and obtain necessary keys/secrets for successful payment processing. Please refer to our documentation Node SDK Reference for detailed setup instructions.

In the example project, you can also create a simple mock server using the following commands:

bash
cd server npm i npm start

Documentation #

For detailed usage instructions, examples, and API reference, visit the documentation.

Issues & Contributions #

If you encounter any issues or would like to contribute, feel free to reach out us here.

1
likes
0
points
1.32k
downloads

Publisher

verified publisherhyperswitch.io

Weekly Downloads

Flutter Hyperswitch: Simplifying payment integration for Flutter apps with seamless API interactions and customizable UI.

Homepage

License

unknown (license)

Dependencies

flutter, http, plugin_platform_interface

More

Packages that depend on flutter_hyperswitch