thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
295 stars 174 forks source link

Error request nothing works php 8.0 #262

Open avatec opened 1 year ago

avatec commented 1 year ago

Hi,

May someone help ? I'm using php 8.0 on docker alpine version. Composer includes:

"league/omnipay": "^3.2", "omnipay/paypal": "^3.0"

When i run my code i see this typeerror message: Symfony\Component\HttpFoundation\Request::createRequestFromFactory(): Argument #2 ($request) must be of type array, null given, called in /var/www/html/vendor/symfony/http-foundation/Request.php on line 306

Heres how i run code: $gateway = Omnipay::create('PayPal_Rest');
$gateway->setClientId( $this->config['paypal_client_id'] ); $gateway->setSecret( $this->config['paypal_secret'] ); $gateway->setTestMode( (!empty( $this->config['paypal_testmode']) ? true : false) );

Errors show on Omnipay::create

the same code works ok on server with php 7.2 so i was wondering if i made some mistake here - and i need to include httpclient or something. Please help me.

avatec commented 1 year ago

I found that problem was in my request.php class. Closing