title: I am receiving a fatal error with class stripe/stripe not found on my website checkout page after installing Stripe API, what could be causing this?
body: <p>I have installed Stripe API using php composer on my website which is currently using Magento 2.2. I ran "composer require stripe/stripe-php", which installed all the correct files. </p>
  
  <p>However, on the checkout page on my website, I am receiving an error: </p>
  
  <pre><code>Fatal error: Uncaught Error: Class 'Stripe\Stripe' not found in /home/collamod/public_html/app/code/Webkul/MpStripe/Model/PaymentMethod.php:174 Stack trace: #0 /home/collamod/public_html/generated/code/Webkul/MpStripe/Model/PaymentMethod/Interceptor.php(24): Webkul\MpStripe\Model\PaymentMethod-&gt;initializeStripe('sk_live_hGgIuYd...') #1 /home/collamod/public_html/app/code/Webkul/MpStripe/Model/PaymentMethod.php(164): Webkul\MpStripe\Model\PaymentMethod\Interceptor-&gt;initializeStripe('sk_live_hGgIuYd...') #2 /home/collamod/public_html/generated/code/Webkul/MpStripe/Model/PaymentMethod/Interceptor.php(14): Webkul\MpStripe\Model\PaymentMethod-&gt;__construct(Object(Magento\Framework\Model\Context), Object(Magento\Framework\Registry), Object(Magento\Framework\Api\ExtensionAttributesFactory), Object(Magento\Framework\Api\AttributeValueFactory), Object(Magento\Payment\Helper\Data), Object(Magento\Framework\App\Config), Object(Magento\Payment\Model\Method\Logger), Object(Webkul\MpStripe\Helper\Data), Object(Webkul\Marketplace\Helper\ in /home/collamod/public_html/app/code/Webkul/MpStripe/Model/PaymentMethod.php on line 174
  </code></pre>
  
  <p>My composer.json file has the appropriate lines required: </p>
  
  <pre><code>"require": {
      "magento/product-community-edition": "2.2.1",
      "composer/composer": "@alpha",
      "mage2pro/stripe": "*",
      "stripe/stripe-php": "^5.7"
  },
  </code></pre>
  
  <p>On Line 174 in PaymentMethod.php as the error indicates, the code is: </p>
  
  <pre><code>public function initializeStripe($stripeKey = false)
  {
      if ($stripeKey) {
          if ($this-&gt;getDebugFlag()) {
              \Stripe\Stripe::setApiKey($stripeKey);
          } else {
              \Stripe\Stripe::setApiKey($stripeKey);
          }
      } else {
          return false;
      }
  }
  </code></pre>
  
  <p>What could be the reason for this? Any insight would be kindly appreciated! Thank you!</p>
  
  <p>Raymond Z.</p>