captureTransaction method
Implementation
@override
Future<Map> captureTransaction(String token, String transactionId) async {
final String baseUrl = await getBaseUrl;
var url =
Uri.parse("$baseUrl/api/v1/simulation/issuing/$transactionId/capture");
var response = await http.post(
url,
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer $token"
},
);
var data = jsonDecode(response.body);
return data;
}