The Official HPay Payment Gateway Plugin for Flutter


This is the official HPay payment gateway plugin for Flutter. Allows you to accept credit cards, debit cards, internet banking,...

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_hpay_sdk

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

  flutter_hpay_sdk: ^0.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:flutter_hpay_sdk/flutter_hpay_sdk.dart';


import 'package:flutter/material.dart';
import 'package:flutter_hpay_sdk/gateway_sdk.dart';

void main() {
  runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  State<MyApp> createState() => _MyAppState();

class _MyAppState extends State<MyApp> {
  void initState() {

  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('HPay Payment Gateway'),
          body: const Column(
            children: [
                  child: GatewaySdk(
                    orderCode: 'OM_123456', //do merchant quy dinh, phai la duy nhat
                    price: '50000',
                    paymentMethodId: 1095,
                    '', //your notify url
                    merchantId: '64875', //your merchant id
                    merchantPass: '09217d13ecfa568', //your merchant password
                    receiverEmail: '', //email người nhận
                    env: 0, //1 môi trường production, 0 là môi trường sandbox

Download details:



#flutter #android #ios 

The Official HPay Payment Gateway Plugin for Flutter
1.05 GEEK