Omnipay error

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
User avatar
aimeos
Administrator
Posts: 3553
Joined: 01 Jan 1970, 00:00

Re: Omnipay error

Post by aimeos » 28 Jan 2016, 15:00

You need at least omnipay/common as dependency if you want to write your own Omnipay driver:
https://github.com/thephpleague/omnipay#package-layout
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kshtjsharam68
Posts: 12
Joined: 27 Jan 2016, 18:37

Re: Omnipay error:

Post by kshtjsharam68 » 28 Jan 2016, 19:12

How to add new custom payment gateway in my aimeos
as my custome gives error Class '\Omnipay\\Gateway' not found

kshtjsharam68
Posts: 12
Joined: 27 Jan 2016, 18:37

Re: Omnipay error

Post by kshtjsharam68 » 29 Jan 2016, 06:20

actually my Omnipay is already installed and I am using custom payment method and has created files in ext/ai-payments/../MShop/service/Providers/Payment/Omnipay.php. Do i am required to do any settings in that files for setting up gateway as it is giving me error for Class '\Omnipay\Omni\Gateway' not found,as here Omni is gateway.
So if any settings are required in this file then plz specify.

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

Re: Omnipay error

Post by aimeos » 29 Jan 2016, 09:17

You should build a new Omnipay driver without Aimeos as you don't necessarily need to implement a class in the ai-payments extension. Be sure you follow the guidelines from http://omnipay.thephpleague.com/gateway ... -your-own/ so it will work in Aimeos too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kshtjsharam68
Posts: 12
Joined: 27 Jan 2016, 18:37

Re: Omnipay error

Post by kshtjsharam68 » 30 Jan 2016, 08:52

Thanks helped a lot.

Post Reply