CheckoutModel constructor
CheckoutModel({
- required String cancelUrl,
- required String phone,
- required String email,
- required String errorUrl,
- required String notifyUrl,
- required String successUrl,
- required List<
String> paymentMethods, - required String expireDate,
- required List<
CheckoutItem> items, - required List<
Beneficiary> beneficiaries, - required String lang,
Implementation
CheckoutModel({
required this.cancelUrl,
// required this.nonce,
required this.phone,
required this.email,
required this.errorUrl,
required this.notifyUrl,
required this.successUrl,
required this.paymentMethods,
required this.expireDate,
required this.items,
required this.beneficiaries,
required this.lang,
}) : nonce = '' {
generateNonce(); // Generate the nonce during object creation
}