flutterkhaltipayment 0.4.0 copy "flutterkhaltipayment: ^0.4.0" to clipboard
flutterkhaltipayment: ^0.4.0 copied to clipboard

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);
      },
    );
property description
merchantKey String (Not Null)(required)
productId String (Not Null) (required)
productName String (Not Null) (required)
amount double (Not Null) (required)
enableEBanking boolean (optional)
enableIPS boolean (optional)
enableMobileBanking boolean (optional)
enableSCT boolean (optional)
productUrl String (Nullable) (optional)

If you need any features suggest #

3
likes
40
points
28
downloads

Publisher

verified publisherbkshah.com.np

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutterkhaltipayment

Packages that implement flutterkhaltipayment