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
If you have a List of Countries that you would like to use to override the
currently provide list of 1, being 'United States', add the list here.
Warning: The credit card form does not currently adjust based on selected
country's needs to verify a card. This form may not work for all countries
If you would like to display test data during your development, a dataset
based on Stripe test data is provided. To use this date, simply mark this
true.
WARNING: Make sure to mark false for any release
If you would like to provide an integrated back button in the header, add
add the needed functionality here.
ex) onBack : ()=>Navigator.of(context).pop();
If you would like to control the pay button state to display text or icons
based on the current stage of the payment process, you will need to
provide a CardPayButtonState key to update it.