checkout static method
Implementation
static Future<CheckoutResponse> checkout(
BuildContext context, {
required Charge charge,
bool fullscreen = false,
Widget? logo,
bool hideEmail = false,
bool hideAmount = false,
}) async {
if (_publicKey == null || _publicKey!.isEmpty) {
throw PlatformException(
code: 'not-initialized',
message: 'You are yet to initialize FlutterPaystackClient',
);
}
if (kIsWeb) return _web.checkout(charge, _publicKey!);
return _plugin.checkout(
context,
charge: charge,
fullscreen: fullscreen,
logo: logo,
hideEmail: hideEmail,
hideAmount: hideAmount,
method: CheckoutMethod.card,
);
}