PayPal\Api\Metadata::setPayerViewUrl PHP Method

setPayerViewUrl() public method

URL representing the payer's view of the invoice.
public setPayerViewUrl ( string $payer_view_url )
$payer_view_url string
    public function setPayerViewUrl($payer_view_url)
    {
        UrlValidator::validate($payer_view_url, "PayerViewUrl");
        $this->payer_view_url = $payer_view_url;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage PayerViewUrl is not a fully qualified URL
  */
 public function testUrlValidationForPayerViewUrl()
 {
     $obj = new Metadata();
     $obj->setPayerViewUrl(null);
 }