flutterkhaltipayment

An unofficial Khalti SDK that can be used by Khalti merchants to integrate Khalti payment on their flutter apps.

Supported Platforms

  • Android
  • iOS (Soon)

Usage

# add this line to your dependencies
dependencies:
  flutterkhaltipayment: ^0.4.0
import 'package:flutterkhaltipayment/flutterkhaltipayment.dart';  
    FlutterKhaltiPayment(
      urlSchemeIOS: "KhaltiPayFlutterExampleScheme",
      merchantKey: "YOUR MERCHANT KEY HERE",
      productId: "0123",
      productName: "Product Name",
      amount: 1000,
      enableEBanking: false,
      enableIPS: false,
      enableMobileBanking: false,
      enableSCT: false,
      productUrl: "http://www.example.com/"
    ).initPayment(
      onSuccess: (data) {
        print("Token Got: ${data["token"].toString()}");
        print("Success got: ${data.toString()}");
      },
      onError: (error) {
        print("error");
        print(error);
      },
    );
propertydescription
merchantKeyString (Not Null)(required)
productIdString (Not Null) (required)
productNameString (Not Null) (required)
amountdouble (Not Null) (required)
enableEBankingboolean (optional)
enableIPSboolean (optional)
enableMobileBankingboolean (optional)
enableSCTboolean (optional)
productUrlString (Nullable) (optional)

If you need any features suggest

Libraries

flutterkhaltipayment