showDetailsForAuthorizedPayment method
Shows details for an authorized payment, by ID.
Parameter authorizationId: The ID of the authorized payment for which to show details.
Implementation
Future<Authorization> showDetailsForAuthorizedPayment(
String authorizationId) async {
var url = _payPalHttpClient.getUrl(
'/v2/payments/authorizations/$authorizationId',
);
var response = await _payPalHttpClient.get(url);
return Authorization.fromJson(jsonDecode(response.body));
}