KhaltiProduct constructor

KhaltiProduct({
  1. required String id,
  2. required String name,
  3. required double amount,
  4. List<KhaltiPaymentPreference>? paymentPreferences,
  5. String url = "",
  6. Map<String, String> customData = const {},
})

Implementation

KhaltiProduct({
  // The id of the product
  required this.id,

  /// The name of the product
  required this.name,

  /// The amount of the product in paisa
  required this.amount,

  /// If specified, the configuration from the `config` is ignored but not overridden
  this.paymentPreferences,

  /// The url of the product
  this.url = "",

  /// Custom data attached to the payment
  this.customData = const {},
});