/** * Set vpsDirectUrl * * @uses SagepayValid::url Validate URL field * @param string $vpsDirectUrl */ public function setVpsDirectUrl($vpsDirectUrl) { if (SagepayValid::url($vpsDirectUrl)) { $this->_vpsDirectUrl = $vpsDirectUrl; } }
/** * Set URL for card remove [RFC1738 valid] * * @uses SagepayValid::url Validate URL field * @param string $removeUrl */ public function setRemoveUrl($removeUrl) { if (SagepayValid::url($removeUrl)) { $this->_removeUrl = $removeUrl; } }
/** * Set reference to the website this transaction came from. * * @param type $website */ public function setWebsite($website) { if (!empty($website) && SagepayValid::url($website)) { $this->_website = $website; } else { trigger_error("Invalid Website URL value, email format expected, '" . $website . "' given", E_USER_WARNING); } }