---
title: "fluentform/payment_method_render_{$methodName}"
description: "## Description This action runs if the form has a single payment method, then the payment method is rendered using this method. ```php /* * Source Action */ do_action('fluentform/payment_method_render_'.$methodName, $methodElement, $form); ``` ## Usage ```php add_action('fluentform/payment_method_render_stripe', function ($methodElement, $form) {…"
url: "https://fluentforms.com/docs/fluentform_payment_method_render_methodname/"
updated: "2023-07-26"
category: Action Hooks
---

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

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

## Usage

```php
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](http://codex.wordpress.org/Theme_Development#Functions_File) 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*
