Esempio n. 1
0
 /**
  * Base URL to web applications endpoint
  * Valid Values: ["https://www.paypal.com/{country_code}/webapps/xocspartaweb/webflow/sparta/proxwebflow", "https://www.paypal.com/{country_code}/proxflow"]
  *
  * @param string $web_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setWebUrl($web_url)
 {
     UrlValidator::validate($web_url, "WebUrl");
     $this->web_url = $web_url;
     return $this;
 }
Esempio n. 2
0
 /**
  * The URL that is configured to listen on `localhost` for incoming `POST` notification messages that contain event information.
  *
  * @param string $url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setUrl($url)
 {
     UrlValidator::validate($url, "Url");
     $this->url = $url;
     return $this;
 }
Esempio n. 3
0
 /**
  * Full URL of an external image to use as the logo. Maximum length is 4000 characters.
  *
  * @param string $logo_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setLogoUrl($logo_url)
 {
     UrlValidator::validate($logo_url, "LogoUrl");
     $this->logo_url = $logo_url;
     return $this;
 }
Esempio n. 4
0
 /**
  * The URL on the merchant site for transferring to after a bank transfer payment.
  * 
  *
  * @param string $bank_txn_pending_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setBankTxnPendingUrl($bank_txn_pending_url)
 {
     UrlValidator::validate($bank_txn_pending_url, "BankTxnPendingUrl");
     $this->bank_txn_pending_url = $bank_txn_pending_url;
     return $this;
 }
Esempio n. 5
0
 /**
  * Url where the payer would be redirected to after canceling the payment.
  *
  * @param string $cancel_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setCancelUrl($cancel_url)
 {
     UrlValidator::validate($cancel_url, "CancelUrl");
     $this->cancel_url = $cancel_url;
     return $this;
 }
Esempio n. 6
0
 /**
  * Notify URL on agreement creation. 1000 characters max.
  *
  * @param string $notify_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setNotifyUrl($notify_url)
 {
     UrlValidator::validate($notify_url, "NotifyUrl");
     $this->notify_url = $notify_url;
     return $this;
 }
Esempio n. 7
0
 /**
  * Url on merchant site pertaining to this payment.
  *
  * @param string $order_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setOrderUrl($order_url)
 {
     UrlValidator::validate($order_url, "OrderUrl");
     $this->order_url = $order_url;
     return $this;
 }
 /**
  *
  * @dataProvider invalidProvider
  * @expectedException \InvalidArgumentException
  */
 public function testValidateException($input)
 {
     UrlValidator::validate($input, "Test Value");
 }
Esempio n. 9
0
 /**
  * The image URL. Maximum length is 4000 characters.
  * @deprecated Not publicly available
  * @param string $image_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setImageUrl($image_url)
 {
     UrlValidator::validate($image_url, "ImageUrl");
     $this->image_url = $image_url;
     return $this;
 }
Esempio n. 10
0
 /**
  * URL representing the payer's view of the invoice.
  *
  * @param string $payer_view_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setPayerViewUrl($payer_view_url)
 {
     UrlValidator::validate($payer_view_url, "PayerViewUrl");
     $this->payer_view_url = $payer_view_url;
     return $this;
 }
 /**
  * The X.509 public key certificate. Download the certificate from this URL and use it to verify the signature. Extract this value from the `PAYPAL-CERT-URL` response header, which is received with the webhook notification.
  *
  * @param string $cert_url
  * @throws \InvalidArgumentException
  * @return $this
  */
 public function setCertUrl($cert_url)
 {
     UrlValidator::validate($cert_url, "CertUrl");
     $this->cert_url = $cert_url;
     return $this;
 }