Add filters or hooks that would allow developers to modify the request payload for Opayo plugin (Direct)
complete
Ma Catrina Banting
We are using your premium Opayo plugin and would like to ask whether you have any plans to support a more developer-friendly way to modify the $data array before it is sent to Opayo.
In a previous (third-party) Opayo plugin we used, this was possible via filters. It allowed us to programmatically adjust values such as the transaction type (TxType), which is critical for our use case. We occasionally process transactions with a total of £0.00, and handling these requires modifying the data before submission.
At the moment, your plugin doesn't appear to offer a clean way to do this without modifying core plugin files - something we want to avoid, especially with a premium product, as those changes are lost on updates.
Aaron Bowie
complete
A new custom filter has been added to the plugin to allow merchants to edit the payload before sent to Opayo for Form, Server and Direct.
Will be released in the up and coming 2.3.0 release.