lib/custom/src/MShop/Service/Provider/Payment/Stripe.php
protected function getProvider()
	{
		$config = $this->getServiceItem()->getConfig();
		$config['apiKey'] = $this->getServiceItem()->getConfigValue( 'stripe.apiKey' );

		if( !isset( $this->provider ) )
		{
			$this->provider = OPay::create( 'Stripe' );
			$this->provider->setTestMode( (bool) $this->getValue( 'testmode', false ) );
			$this->provider->initialize( $config );
		}

		return $this->provider;
	}
protected function getProvider()
	{
		$config = $this->getServiceItem()->getConfig();
		$config['apiKey'] = $this->getServiceItem()->getConfigValue( 'stripe.apiKey' );

		if( !isset( $this->provider ) )
		{
			$this->provider = OPay::create( 'Stripe' );
			$this->provider->setTestMode( (bool) $this->getValue( 'testmode', false ) );
			$this->provider->initialize( $config );
		}

		return $this->provider;
	}
Returns the Omnipay gateway provider object.

@return \Omnipay\Common\GatewayInterface Gateway provider object