View Categories

fluentform/payment_method_render_{$methodName}

Description #

This action runs if the form has a single payment method, then the payment method is rendered using this method.

/*
* Source Action
*/
do_action('fluentform/payment_method_render_'.$methodName, $methodElement, $form);

Usage #

add_action('fluentform/payment_method_render_stripe', function ($methodElement, $form)
{
   // Do your stuffs here
}, 10, 2);

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

Parameters #

  • $methodElement (array) Payment Method Data
  • $form (object) Form Object

Source Code #

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