Aamarpay constructor
Aamarpay({
- required bool isSandBox,
- required String successUrl,
- required String failUrl,
- required String cancelUrl,
- required String storeID,
- required String transactionID,
- String? transactionAmount,
- TextEditingController? transactionAmountFromTextField,
- required String signature,
- String? description,
- required String? customerName,
- required String? customerEmail,
- required String customerMobile,
- @Deprecated('Use status function insted of paymentStatus') PaymentStatus<
String> ? paymentStatus, - IsLoadingStaus<
bool> ? isLoading, - required Widget child,
- ReadUrl<
String> ? returnUrl, - Status<
EventState, String> ? status, - String? customerAddress1,
- String? customerAddress2,
- String? customerCity,
- String? customerState,
- String? customerPostCode,
- String? optA,
- String? optB,
- String? optC,
- String? optD,
Implementation
Aamarpay({
required this.isSandBox,
required this.successUrl,
required this.failUrl,
required this.cancelUrl,
required this.storeID,
required this.transactionID,
this.transactionAmount,
this.transactionAmountFromTextField,
required this.signature,
this.description,
required this.customerName,
required this.customerEmail,
required this.customerMobile,
@Deprecated('Use status function insted of paymentStatus')
this.paymentStatus,
this.isLoading,
required this.child,
this.returnUrl,
this.status,
this.customerAddress1,
this.customerAddress2,
this.customerCity,
this.customerState,
this.customerPostCode,
this.optA,
this.optB,
this.optC,
this.optD,
}) : assert((transactionAmount != null ||
transactionAmountFromTextField != null)
? true
: throw "Add transactionAmount Or transactionAmountFromTextField");