CheckoutScreen constructor
const
CheckoutScreen({
- Key? key,
- required GatewayType gatewayType,
- required String secretKey,
- required int amountInMinorUnits,
- VoidCallback? onSuccess,
- VoidCallback? onFailure,
- Widget? loadingWidget,
- required String email,
- required String fullName,
- required String callbackUrl,
- String? phoneNumber,
- String currency = "NGN",
- String title = "Payment",
- String description = "Payment",
Implementation
const CheckoutScreen({
super.key,
required this.gatewayType,
required this.secretKey,
required this.amountInMinorUnits,
this.onSuccess,
this.onFailure,
this.loadingWidget,
required this.email,
required this.fullName,
required this.callbackUrl,
this.phoneNumber,
this.currency = "NGN",
this.title = "Payment",
this.description = "Payment",
});