/** * Obtain the PaymentForward resource for the given identifier. * * @deprecated since version 1.2. Use PaymentForwardClient. * @param string $paymentForwardId * @param array $params Parameters. * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param BlockCypherRestCall $restCall is the Rest Call Service that is used to make rest calls * @return PaymentForward */ public static function get($paymentForwardId, $params = array(), $apiContext = null, $restCall = null) { ArgumentValidator::validate($paymentForwardId, 'paymentForwardId'); ArgumentGetParamsValidator::validate($params, 'params'); $allowedParams = array(); $params = ArgumentGetParamsValidator::sanitize($params, $allowedParams); $payLoad = ""; $chainUrlPrefix = self::getChainUrlPrefix($apiContext); $json = self::executeCall("{$chainUrlPrefix}/payments/{$paymentForwardId}?" . http_build_query($params), "GET", $payLoad, null, $apiContext, $restCall); $ret = new PaymentForward(); $ret->fromJson($json); return $ret; }