openCheckout method
void
openCheckout({})
Implementation
void openCheckout({
required String amount,
required String mobileNo,
required String email,
required String description,
required String razorpayOrderId,
required String name,
required String medicine_razorpay_key,
}) async {
var options = {
'key': medicine_razorpay_key,
'amount': amount,
'name': name,
'order_id': razorpayOrderId,
'description': description.toString(),
'retry': {'enabled': true, 'max_count': 1},
'send_sms_hash': true,
'prefill': {'contact': mobileNo, 'email': email},
'external': {
'wallets': [
'paytm',
]
}
};
try {
_razorpay.open(options);
} catch (e) {}
}