CreditCardForm constructor

const CreditCardForm({
  1. Key? key,
  2. List<String> countries = const ['United States'],
  3. String initEmail = '',
  4. String initBuyerName = '',
  5. String initPhone = '',
  6. bool displayEmail = true,
  7. bool lockEmail = false,
  8. required dynamic onCardPay(
    1. CardFormResults
    ),
  9. GlobalKey<CardPayButtonState>? payBtnKey,
  10. GlobalKey<FormState>? formKey,
  11. bool displayTestData = false,
})

The CreditCardForm is a stateful widget containing a form and fields necessary to complete a typical credit card transaction

Implementation

const CreditCardForm({
  Key? key,
  this.countries = const ['United States'],
  this.initEmail = '',
  this.initBuyerName = '',
  this.initPhone = '',
  this.displayEmail = true,
  this.lockEmail = false,
  required this.onCardPay,
  this.payBtnKey,
  this.formKey,
  this.displayTestData = false,
}) : super(key: key);