View Categories

fluentform/payment_method_settings_validation_{$method}

Description  #

This filter is used during saving any payment method to validate the data.

apply_filters('fluentform/payment_method_settings_validation_' . $method, $errors, $settings);

Usage   #

add_filter('fluentform/payment_method_settings_validation_' . $method, function ($errors, $settings) {
    // Do your stuff here
    
    return $payments;
}, 10, 2);

Parameters #

  • $errors (array) Validation Errors
  • $settings (array) Payment Settings

Placement #

This code should be placed in the functions.php file of your active theme.

Source Code #

This filter is located in FluentFormPro\src\Payments\AjaxEndpoints -> savePaymentMethodSettings()