sendUPIid static method
Implementation
static Future<Map<String, dynamic>> sendUPIid({
required String insertID,
required String transactionID,
}) async {
var uri = Uri.parse(callBackURL);
try {
isLoading.value = true;
var response = await client.post(
uri,
headers: {
"Authorization": SignUpController.currentUserToken,
},
body: {
'insert_id': insertID.toString(),
'transaction_id': transactionID,
},
);
var resBody = json.decode(response.body);
//
isLoading.value = false;
return resBody;
} catch (e) {
isLoading.value = false;
return {};
}
}