CheckoutPage constructor
const
CheckoutPage({
- Key? key,
- required List<
PriceItem> priceItems, - required String payToName,
- bool displayNativePay = false,
- bool isApple = false,
- Function? onNativePay,
- bool displayCashPay = false,
- Function? onCashPay,
- required dynamic onCardPay(),
- bool displayEmail = true,
- bool lockEmail = false,
- String initEmail = '',
- String initPhone = '',
- String initBuyerName = '',
- List<
String> ? countriesOverride, - Function? onBack,
- GlobalKey<
CardPayButtonState> ? payBtnKey, - GlobalKey<
FormState> ? formKey, - double? cashPrice,
- bool displayTestData = false,
The CheckoutPage widget is a stateless widget resembling your typical checkout page and some typical option along with some helpful features such as built-in form validation and credit card icons that update based on the input provided. This is a UI widget only and holds no responsibility and makes no guarantee for transactions using this ui. Transaction security and integrity is the responsibility of the developer and what ever Third-party transaction api that developer is using. A great API to use is Stripe
Implementation
const CheckoutPage(
{Key? key,
required this.priceItems,
required this.payToName,
this.displayNativePay = false,
this.isApple = false,
this.onNativePay,
this.displayCashPay = false,
this.onCashPay,
required this.onCardPay,
this.displayEmail = true,
this.lockEmail = false,
this.initEmail = '',
this.initPhone = '',
this.initBuyerName = '',
this.countriesOverride,
this.onBack,
this.payBtnKey,
this.formKey,
this.cashPrice,
this.displayTestData = false,
this.footer})
: assert(priceItems.length <= 10),
super(key: key);