Charge constructor
Charge(
- String identifier
Amount to pay in base currency. Must be a valid positive number
The locale used for formatting amount in the UI prompt. Defaults to Strings.nigerianLocale
ISO 4217 payment currency code (e.g USD). Defaults to Strings.ngn.
If you're setting this value, also set locale for better formatting.
Implementation
// int _amount = 0;
// Map<String, dynamic>? _metadata;
// List<Map<String, dynamic>>? _customFields;
// bool _hasMeta = false;
// Map<String, String?>? _additionalParameters;
/// The locale used for formatting amount in the UI prompt. Defaults to [Strings.nigerianLocale]
// String? locale;
// String? accessCode;
// String? plan;
// String? reference;
/// ISO 4217 payment currency code (e.g USD). Defaults to [Strings.ngn].
///
/// If you're setting this value, also set [locale] for better formatting.
// String? currency;
// int? transactionCharge;
//
// /// Who bears budpay charges? [Bearer.account] or [Bearer.subAccount]
// Bearer? bearer;
//
// String? subAccount;
Charge(this.identifier) {
// _metadata = {};
// amount = -1;
// _additionalParameters = {};
// _customFields = [];
// _metadata!['custom_fields'] = _customFields;
// locale = Strings.nigerianLocale;
// currency = Strings.ngn;
}