showPlanDetails method

Future<Plan> showPlanDetails(
  1. String planId
)

Shows details for a plan.

Parameter planId: The ID of the plan.

Implementation

Future<Plan> showPlanDetails(String planId) async {
  var url = _payPalHttpClient.getUrl('/v1/billing/plans/$planId');

  var response = await _payPalHttpClient.get(url);
  return Plan.fromJson(jsonDecode(response.body));
}