payStackPayment static method
PayStack Payment
Implementation
static Future<void> payStackPayment({
required BuildContext context,
required String secretKey,
required String customerEmail,
required int amount,
String currency = "NGN",
String? callbackUrl,
String paymentGatewayName = "Paystack",
Function()? onShowToast,
Function()? onPaymentSuccess,
Function()? onPaymentFailure,
}) {
return PaystackService.openPaystack(
context: context,
secretKey: secretKey,
customerEmail: customerEmail,
amount: amount,
currency: currency,
callbackUrl: callbackUrl,
paymentGatewayName: paymentGatewayName,
onShowToast: onShowToast,
onPaymentSuccess: onPaymentSuccess,
onPaymentFailure: onPaymentFailure,
);
}