Flutter

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

Flutter Integration Steps

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

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

Import Package

Import the Hesabe package in your Dart file:

import 'package:hesabe/hesabe.dart'

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
});

Download Kit

Complete Flutter integration kit with examples

Example KitDownload Link
Download Flutter KitClick here