razorPayPayment static method
dynamic
razorPayPayment({
- required String contactNumber,
- required String emailId,
- required String razorpayKey,
- required double amount,
- required String appName,
- String? description,
- String? colorCode,
- String paymentGatewayName = "Razorpay",
- dynamic onShowToast()?,
- dynamic onPaymentSuccess()?,
- dynamic onPaymentFailure()?,
- dynamic onExternalWallet()?,
Razorpay Payment
Implementation
static razorPayPayment({
required String contactNumber,
required String emailId,
required String razorpayKey,
required double amount,
required String appName,
String? description,
String? colorCode,
String paymentGatewayName = "Razorpay",
Function()? onShowToast,
Function()? onPaymentSuccess,
Function()? onPaymentFailure,
Function()? onExternalWallet,
}) {
return RazorpayServices().openRazorpay(
contactNumber: contactNumber,
emailId: emailId,
razorpayKey: razorpayKey,
amount: amount,
appName: appName,
colorCode: colorCode,
description: description,
paymentGatewayName: paymentGatewayName,
onShowToast: onShowToast,
onPaymentSuccess: onPaymentSuccess,
onPaymentFailure: onPaymentFailure,
onExternalWallet: onExternalWallet,
);
}