CheckoutData constructor
const
CheckoutData({
- required List<
PriceItem> priceItems, - required String payToName,
- bool displayNativePay = false,
- bool isApple = false,
- void onNativePay(
- CheckOutResult checkOutResult
- void onCashPay(
- CheckOutResult checkOutResult
- required dynamic onCardPay(
- CardFormResults results,
- CheckOutResult checkOutResult
- 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,
- double? taxRate,
- bool displayTestData = false,
The CheckoutData 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 CheckoutData(
{required this.priceItems,
required this.payToName,
this.displayNativePay = false,
this.isApple = false,
this.onNativePay,
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.taxRate,
this.displayTestData = false});