launchUpi method
dynamic
launchUpi({})
Implementation
launchUpi(
{String? upiId,
String? name,
String? amount,
String? message,
String? currency}) async {
String url =
'upi://pay?pa=$upiId&pn=$name&am=$amount&tn=$message&cu=$currency';
var result = await launchUrl(Uri.parse(url));
debugPrint(result.toString());
if (result == true) {
log("The Payment is Completed");
} else if (result == false) {
log("The Payment is Failed");
}
}