addParameter("callerReference", $callerReference); $this->addParameter("returnURL", $returnUrl); $this->addParameter("maxFixedFee", $maxFixedFee); $this->addParameter("maxVariableFee", $maxVariableFee); $this->addParameter("recipientPaysFee", $recipientPaysFee); } function validateParameters($parameters) { //mandatory parameters for recipient token pipeline if (!isset($parameters["maxFixedFee"])) { throw new Exception("maxFixedFee is missing in parameters."); } if (!isset($parameters["maxVariableFee"])) { throw new Exception("maxVariableFee is missing in parameters."); } if (!isset($parameters["recipientPaysFee"])) { throw new Exception("recipientPaysFee is missing in parameters."); } } }