Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
611 views
in Technique[技术] by (71.8m points)

typo3 9.x - Call to undefined method GuzzleHttpClient::request()

I'm using Aimeos extension with TYPO3 v9.5.14 to create a Shop website.

I have a problem with the return urls from the payment gateway to the website : continueurl / cancelurl / callbackurl . I get the following error

Call to undefined method GuzzleHttpClient::request()
in /var/www/example.com/typo3conf/ext/aimeos_pay/Resources/Libraries/nobrainerweb/omnipay-quickpay/src/Message/CompleteRequest.php line 44

This is the code :

public function sendData($data)
{
    $httpResponse =  $this->httpClient->request('get', $this->getEndPoint() . '/payments/' . $this->getTransactionReference(),
        [
            'Authorization' => 'Basic ' . base64_encode(":" . $this->getApikey()),
            'Accept-Version' => 'v10',
            'Content-Type' => 'application/json'
        ]
    );
    return $this->response = new Response($this, $httpResponse->getBody()->getContents());
}

Guzzle is properly installed through Composer.

composer require guzzlehttp/guzzle

enter image description here

question from:https://stackoverflow.com/questions/65934660/call-to-undefined-method-guzzle-http-clientrequest

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...