/** * Set Recurly username and password. * * @param string $username Recurly username * @param string $password Recurly password */ public static function SetAuth($username, $password, $subdomain, $environment = 'production', $private_key = null) { if (!in_array($environment, array('production', 'sandbox', 'development'))) { throw new RecurlyException("Environment must be production or sandbox."); } self::$username = $username; self::$password = $password; self::$subdomain = $subdomain; self::$environment = $environment; self::$private_key = $private_key; }