fluentform_after_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.

/*
* Source Action
*/
do_action('fluentform_after_payment_status_change', $newStatus, $this->getSubmission());

Usage #

add_action('fluentform_after_payment_status_change', function ( $newStatus, $submission)
{
   // Do your stuffs here
  if ($newStatus == 'paid' || $newStatus == 'pending' || $newStatus == 'processing') {
                
  }else{
  }

}, 10, 2);

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

Paramertes #

  • $newStatus (string) New Status
  • $submission (array) Submission Data

Source Code #

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

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *