CheckoutPage constructor
CheckoutPage({
- Key? key,
- required Future<
IntentClientSecret> createPaymentIntent(), - void onPaymentSuccess(
- BuildContext context,
- Map<
String, dynamic> paymentIntent
- void onPaymentFailed(
- BuildContext context,
- Map<
String, dynamic> paymentIntent
- void onPaymentError()?,
Implementation
CheckoutPage({
Key? key,
required this.createPaymentIntent,
void Function(BuildContext context, Map<String, dynamic> paymentIntent)? onPaymentSuccess,
void Function(BuildContext context, Map<String, dynamic> paymentIntent)? onPaymentFailed,
void Function(BuildContext, StripeApiException)? onPaymentError,
}) : onPaymentSuccess = onPaymentSuccess ?? StripeUiOptions.onPaymentSuccess,
onPaymentFailed = onPaymentFailed ?? StripeUiOptions.onPaymentFailed,
onPaymentError = onPaymentError ?? StripeUiOptions.onPaymentError,
super(key: key);