Skip to main content

Flutter

shopify

Flutter

Cross-platform mobile development

Integrate Hesabe Payment Gateway into your Flutter application. Cross-platform mobile development framework by Google with comprehensive payment processing capabilities.

🔧 Dart SDK Compatibility

📦

Dart Versions < 3.0.0

sdk: ">=2.12.0 <3.0.0"
🚀

Dart Version 3+ and Above

sdk: ">=2.12.0 <4.0.0"

🛠️ Integration Steps

You can integrate Hesabe Payment Gateway in your Flutter app by following the comprehensive steps below:

1

Add Package Dependency

Download and add the package/plugin in your project's root folder and add the dependency in your pubspec.yaml file:

dependencies:
hesabe:
path: ./hesabe`

Then run flutter pub get

2

Import Package

Import the Hesabe package in your Dart file:

import 'package:hesabe/hesabe.dart'
3

Initialize Hesabe

Use the Sandbox environment URL and keys to test application with the Flutter plugin:

Hesabe hesabe = Hesabe(
baseUrl: 'https://XXXX.hesabe.com', // Environment URL provided by Hesabe
accessCode: 'XXXXX', // Access code provided by Hesabe
ivKey: 'XXXXX', // Iv Key provided by Hesabe
secretKey: 'XXXXX', // Secret key provided by Hesabe
);

Add Event Listeners

Use Event Listener(s) to get the success and failure response from Hesabe:

  hesabe.on(Hesabe.EVENT_PAYMENT_SUCCESS, (data) {
// TODO: Implementation pending
});

hesabe.on(Hesabe.EVENT_PAYMENT_ERROR, (data) {
// TODO: Implementation pending
});

📦 Example Project & Support

📦

Example Project

Downloadable kit with plugin code and readymade examples

🔧

Technical Support

For technical integration assistance with Flutter