ABACheckoutContainer constructor
const
ABACheckoutContainer({
- Key? key,
- required double amount,
- required double shipping,
- required String lastname,
- required String firstname,
- required String email,
- required String phone,
- List<
ABATransactionItem> items = const [], - required String checkoutApiUrl,
- required ABAMerchant merchant,
- bool enabled = false,
- Widget? checkoutLabel,
- dynamic onBeginCheckout(
- ABATransaction? transaction
- dynamic onFinishCheckout(
- ABATransaction? transaction
- dynamic onBeginCheckTransaction(
- ABATransaction? transaction
- dynamic onFinishCheckTransaction(
- ABATransaction? transaction
- dynamic onCreatedTransaction()?,
- dynamic onPaymentSuccess(
- ABATransaction? transaction
- dynamic onPaymentFail(
- ABATransaction? transaction
Implementation
const ABACheckoutContainer({
Key? key,
required this.amount,
required this.shipping,
required this.lastname,
required this.firstname,
required this.email,
required this.phone,
this.items = const [],
required this.checkoutApiUrl,
required this.merchant,
this.enabled: false,
this.checkoutLabel,
this.onBeginCheckout,
this.onFinishCheckout,
this.onBeginCheckTransaction,
this.onFinishCheckTransaction,
this.onCreatedTransaction,
this.onPaymentSuccess,
this.onPaymentFail,
}) : assert(amount > 0),
// assert(lastname != null),
// assert(firstname != null),
// assert(email != null),
// assert(phone != null),
// assert(checkoutApiUrl != null),
// assert(merchant != null),
super(key: key);