Beispiel #1
0
 /**
  * Set API Base URL.
  *
  * @param  string|null  $apiBaseUrl
  *
  * @return self
  */
 private function setApiBase($apiBaseUrl)
 {
     if (empty($apiBaseUrl)) {
         $apiBaseUrl = Stripe::getApiBaseUrl();
     }
     $this->apiBaseUrl = $apiBaseUrl;
     return $this;
 }
Beispiel #2
0
 /**
  * Get the base url.
  *
  * @return string
  */
 public static function baseUrl()
 {
     return Stripe::getApiBaseUrl();
 }