Overwrite payment file

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)
Spam and unrelated posts will be removed immediately!
Armenia
Posts: 6
Joined: 03 Jun 2022, 11:32

Overwrite payment file

Post by Armenia » 06 Jun 2022, 14:45

Laravel version: 6.20
Aimeos version: 2021.04
PHP version: 7.4

I'm trying to overwrite /ai-payments/lib/custom/src/MShop/Service/Provider/Payment/OmniPay.php to my files.
In which directory I should be overwrite this file ? And path for config files

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

Re: Overwrite payment file

Post by aimeos » 07 Jun 2022, 16:18

You can only extend from the class and give your new class a new name. Configure the new name in the "Provider" field of the service detail view of the admin backend to your new class instead of the original one.

Please note that Aimeos 2021.04 isn't supported any more and you should upgrade at least to 2021.10 LTS:
https://aimeos.org/roadmap
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply