CheckoutScreen constructor

const CheckoutScreen({
  1. Key? key,
  2. required GatewayType gatewayType,
  3. required String secretKey,
  4. required int amountInMinorUnits,
  5. VoidCallback? onSuccess,
  6. VoidCallback? onFailure,
  7. Widget? loadingWidget,
  8. required String email,
  9. required String fullName,
  10. required String callbackUrl,
  11. String? phoneNumber,
  12. String currency = "NGN",
  13. String title = "Payment",
  14. 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",
});