This filter allows developers to modify the payload data being sent to the Opayo API before the transaction is processed. It’s useful if you want to inject custom fields, change values, or perform conditional logic based on the order data.
To use the ag_opayo_modify_payload filter, add the following snippet to your functions.php file or a custom plugin:
Ensure that any changes made still comply with Opayo’s payload format, or the transaction may be rejected.
If you’re adding custom data not expected by Opayo, it may cause payment errors.
Was this helpful?
Our team are on hand to provide fast, helpful and professional support.
Start exploring our fully functional demo site today.
Gain exclusive admin access to see what's possible.