getPaymentAttempt method
Implementation
@override
Future<Map> getPaymentAttempt(String token, String paymentAttemptId) async {
final baseUrl = await getBaseUrl;
var url =
Uri.parse("$baseUrl/api/v1/pa/payment_attempts/$paymentAttemptId");
var response = await http.get(
url,
headers: {"Authorization": "Bearer $token"},
);
var data = jsonDecode(response.body);
return data;
}