I have to add a work around fix for a payment method by adding a line of code to vendor/magento/module-payment/Helper/Data.php
.
I've tried my fix by adding it directly to that file and it's working, but since files in the vendor folder shouldn't be modified, I'll have to put that fix in app/code
.
I've tried adding a copy of the file along with my modified code in app/code/Magento/Payment/Helper/Data.php
instead. Nothing happens and the bug is still there and I can't find any documentation on this.
How do I override that specific file?