Adding/extending functions of OmniPay class
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- Mike-Antipov
- Posts: 1
- Joined: 15 Nov 2021, 17:40
Adding/extending functions of OmniPay class
Greetings. We have a quirky payment gateway which returns successful codes even if a transaction was failed, they use their own additional fields for that. Because of that I need to add additional checks to the updateSync function and some other ones, how do I properly do that without touching the core file? Thanks!
Re: Adding/extending functions of OmniPay class
Mike-Antipov wrote: ↑15 Nov 2021, 17:46 Greetings. We have a quirky payment gateway which returns successful codes even if a transaction was failed, they use their own additional fields for that. Because of that I need to add additional checks to the updateSync function and some other ones, how do I properly do that without touching the core file? Thanks!
Yes this is is big issue hopefully aimeos can show us best way to fix it
Re: Adding/extending functions of OmniPay class
If the Omnipay driver has problems, fix them there and make sure the isSucessful() and isPending() methods are implemented correctly. Create a pull request for the maintainer of the Omnipay driver and if he doesn't care about the driver any more, fork it and apply your fixes there.
Don't try to change the Aimeos implementation if the problem is in the Omnipay driver!
Don't try to change the Aimeos implementation if the problem is in the Omnipay driver!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star