Skip to content

A flutter plugin for integrating Khalti's Merchant client api. Forked from pawanprjl/khalti_client_flutter because v0.0.1 wouldn't build. The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':khalti_client' -> org.jetbrains.kotlin:kotlin-grad

License

Notifications You must be signed in to change notification settings

MorosophDude/khalti_client_flutter

 
 

Repository files navigation

khalti_client

A plugin for implementing khalti client api in flutter. This plugin is currently only supported for android.

How to use

KhaltiClient _khaltiClient = KhaltiClient.configure(
  publicKey: "test_public_key_8a153ab792a64d3a88a1425209eecbf1",
  paymentPreferences: [KhaltiPaymentPreference.KHALTI],
);

KhaltiProduct product = KhaltiProduct(
  id: "test",
  name: "Test Product",
  amount: 1000,
);

_khaltiClient.startPayment(
  product: product,
  onSuccess: (data) {
    print("success");
  },
  onFailure: (data) {
    print("failure");
  },
);

About

A flutter plugin for integrating Khalti's Merchant client api. Forked from pawanprjl/khalti_client_flutter because v0.0.1 wouldn't build. The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':khalti_client' -> org.jetbrains.kotlin:kotlin-grad

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 41.3%
  • Kotlin 36.8%
  • Swift 7.9%
  • Ruby 7.9%
  • Objective-C 6.1%