---
title: "fluentform/payment_method_settings_validation_{$method}"
description: "## Description  This filter is used during saving any payment method to validate the data. ```php apply_filters('fluentform/payment_method_settings_validation_' . $method, $errors, $settings); ``` ## Usage   ```php add_filter('fluentform/payment_method_settings_validation_' . $method, function ($errors, $settings) { // Do your stuff here return $payments; },…"
url: "https://fluentforms.com/docs/payment_method_settings_validation_method/"
updated: "2023-07-25"
category: Filter Hooks
---

# fluentform/payment_method_settings_validation_{$method}

## Description 

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

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

## Usage  

```php
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](http://codex.wordpress.org/Theme_Development#Functions_File) file of your active theme.

## Source Code

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