Available Filters For WooCommerce Opayo Payment Suite

The Opayo Payment Suite is closed to new subscriptions and will be retired by the end of the year. The developer continues to provide support for active subscribers, but we recommend starting the transition to the new Elavon Payments for WooCommerce extension.

If you have an active subscription to Opayo Payment Suite and require support, please submit a support request here.

Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our  Support Policy.

Configure the credit card fields for Opayo Direct

↑ Back to top

You can use the filter woocommerce_sagepaydirect_credit_card_form_fields to modify the fields used on the credit card form.

You can rearrange the order of the fields with this code in your theme functions.php file

add_filter( 'woocommerce_sagepaydirect_credit_card_form_fields', 'custom_woocommerce_sagepaydirect_credit_card_form_fields' );
function custom_woocommerce_sagepaydirect_credit_card_form_fields( $fields ) {

$new_fields = array();
$new_fields[] = $fields[‘card-number-field’];
$new_fields[] = $fields[‘card-expiry-field’];
$new_fields[] = $fields[‘card-cvc-field’];
$new_fields[] = $fields[‘card-type-field’];

return $new_fields
}

It is recommended that you do not change the ID or field names.

Feedback and feature requests

↑ Back to top

For feedback on the Opayo gateway, this documentation or for feature requests, email support@chromeorange.co.uk

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.