validate() 공개 정적인 메소드

Helper method for validating URLs that will be used by this API in any requests.
public static validate ( $url, string | null $urlName = null )
$url
$urlName string | null
예제 #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;
 }
예제 #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;
 }
예제 #3
0
파일: Invoice.php 프로젝트: bontiv/intrateb
 /**
  * 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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #7
0
파일: CartBase.php 프로젝트: fengyeno/fille
 /**
  * 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;
 }
예제 #8
0
 /**
  *
  * @dataProvider invalidProvider
  * @expectedException \InvalidArgumentException
  */
 public function testValidateException($input)
 {
     UrlValidator::validate($input, "Test Value");
 }
예제 #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;
 }
예제 #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;
 }