Class '\Omnipay\quickpay\Gateway' not found

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
mahrez
Posts: 8
Joined: 22 Apr 2020, 11:06

Class '\Omnipay\quickpay\Gateway' not found

Post by mahrez » 20 Jan 2021, 16:29

I downloaded Omnipay driver for the Quickpay payment processor from GitHub : https://github.com/thomasbnielsen/omnipay-quickpay

Copied contents to typo3conf/ext/aimeos_pay/Resources/Libraries/omnipay/quickpay

Added service in Aimeos : Screenshot https://i.ibb.co/T25WzP4/image.png

When checkout in webshop, I only get:

Code: Select all

Class '\Omnipay\quickpay\Gateway' not found
Image

I'm using Aimeos ext and aimeos_pay v19.10.1 and TYPO3 v9.5.14

Also, I executed : COMPOSER=composer.json composer update --no-dev on the : /typo3conf/ext/aimeos but I get this error : https://i.ibb.co/bzSjsWq/image.png

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Class '\Omnipay\quickpay\Gateway' not found

Post by aimeos » 21 Jan 2021, 17:01

aimeos_pay is no longer supported because it's impossible to offer that extension for TYPO3 v9+ due to duplicate classes.

The only way is installing TYPO3 and Aimeos via composer and then execute:

Code: Select all

composer req ai-payments nobrainerweb/omnipay-quickpay
to install Omnipay and the Quickpay driver too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mahrez
Posts: 8
Joined: 22 Apr 2020, 11:06

Re: Class '\Omnipay\quickpay\Gateway' not found

Post by mahrez » 04 Feb 2021, 20:30

Thank you for reply.

Please, What do I do if it's not a new TYPO3 installation and it's not installed with comopser?

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Class '\Omnipay\quickpay\Gateway' not found

Post by aimeos » 05 Feb 2021, 08:31

- Install a new setup with composer including the extensions you have in your old installation
- Copy the typo3conf/LocalConfiguration.php from your old installation to the new one
- Move the existing directory to a backup location
- Move the new application to one directory below the document root and change the htdocs directory to the public directory in your web server

Keep care about the last point! Composer based installations have a different directory layout (docroot is now the public subdirectory).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mahrez
Posts: 8
Joined: 22 Apr 2020, 11:06

Re: Class '\Omnipay\quickpay\Gateway' not found

Post by mahrez » 28 Feb 2021, 12:02

I reinstalled the site and aimeos using composer and I added :

Code: Select all

"league/omnipay": "^3",
"nobrainerweb/omnipay-quickpay": "^3.0"
Everything is functional except the callbackurl ... we get

Code: Select all

HTTP Status code: 500
After some diagnosis I found this error :

Code: Select all

Call to undefined method Omnipay\Quickpay\Message\Notification::send()
in /var/www/example.com/public/typo3conf/ext/aimeos/Resources/Private/Extensions/ai-payments/lib/custom/src/MShop/Service/Provider/Payment/OmniPay.php line 504
Image

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Class '\Omnipay\quickpay\Gateway' not found

Post by aimeos » 02 Mar 2021, 09:54

Seems like the Omnipay driver is incomplete and the send() method of the reponse object isn't implemented.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply