---
title: fluentform/before_payment_status_change
description: "## Description This action runs before the payment status is changed for every payment. You can hook into this and get the new status. ```php /* * Source Action */ do_action('fluentform/before_payment_status_change', $newStatus, $this->getSubmission()); ``` ## Usage ```php add_action('fluentform/before_payment_status_change', function ($newStatus,…"
url: "https://fluentforms.com/docs/fluentform_before_payment_status_change/"
updated: "2023-07-26"
category: Action Hooks
---

# fluentform/before_payment_status_change

## Description

This action runs before the payment status is changed for every payment. You can hook into this and get the new status.

```php
/*
* Source Action
*/
do_action('fluentform/before_payment_status_change', $newStatus, $this->getSubmission());
```

## Usage

```php
add_action('fluentform/before_payment_status_change', function ($newStatus, $submission)
{
   // Do your stuffs here
}, 10, 2);
```

This code should be placed in the [functions.php](http://codex.wordpress.org/Theme_Development#Functions_File) file of your active theme.

## Parameters

- **$newStatus** (string) New Status
- **$submission** (array) Submission Data

## Source Code

This hook is located in */fluentformpro/src/Payments/PaymentMethods/BaseProcessor.php*
