Exemplo n.º 1
0
 /**
  * To retrieve base URL transactions. To get the full URL, concatenate this URL with the transaction's hash.
  *
  * @param string $tx_url
  * @return $this
  */
 public function setTxUrl($tx_url)
 {
     UrlValidator::validate($tx_url, "tx_url");
     $this->tx_url = $tx_url;
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param string $url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setUrl($url)
 {
     UrlValidator::validate($url, "url");
     $this->url = $url;
     return $this;
 }
Exemplo n.º 3
0
 /**
  *
  * @dataProvider invalidProvider
  * @expectedException \InvalidArgumentException
  */
 public function testValidateException($input)
 {
     UrlValidator::validate($input, "Test Value");
 }
Exemplo n.º 4
0
 /**
  * Optional The URL to call anytime a new payment is forwarded.
  *
  * @param string $callback_url
  * @return $this
  */
 public function setCallbackUrl($callback_url)
 {
     UrlValidator::validate($callback_url, "callback_url");
     $this->callback_url = $callback_url;
     return $this;
 }
Exemplo n.º 5
0
 /**
  * @param string $next_outputs
  * @return $this
  */
 public function setNextOutputs($next_outputs)
 {
     UrlValidator::validate($next_outputs, "next_outputs");
     $this->next_outputs = $next_outputs;
     return $this;
 }