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