handle3dsChallenge method
Implementation
Future<Map<String, dynamic>?> handle3dsChallenge(dynamic responseJson) async {
try {
Map<String, String> body = {
responseJson.creq: responseJson.creq,
responseJson.term_url: responseJson.TermUrl
};
http.Response response = await http.post(
Uri.parse(responseJson.redirect_post_url),
body: body,
);
printDev('Post response $response');
Map<String, dynamic>? status = await verifyTransactionStatus();
return status;
} catch (error) {
printDev('Error: $error');
return null;
}
}