Example #1
0
 /**
  * Retrieve the details for a particular billing plan by passing the billing plan ID to the request URI.
  *
  * @param string $planId
  * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
  * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
  * @return Plan
  */
 public static function get($planId, $apiContext = null, $restCall = null)
 {
     ArgumentValidator::validate($planId, 'planId');
     $payLoad = "";
     $json = self::executeCall("/v1/payments/billing-plans/{$planId}", "GET", $payLoad, null, $apiContext, $restCall);
     $ret = new Plan();
     $ret->fromJson($json);
     return $ret;
 }