flutterkhaltipayment 0.4.0

Flutter Android

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

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 #

3
likes
70
pub points
23%
popularity

Publisher

bkshah.com.np

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutterkhaltipayment