# sellkit/1.3.1/includes/elementor/modules/order-details/items/payment-method.php

SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster, version 1.3.1. 113 lines.

- Page: https://pluginprobe.com/plugins/sellkit/1.3.1/code/includes/elementor/modules/order-details/items/payment-method.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.3.1/raw/includes/elementor/modules/order-details/items/payment-method.php
- Modified: 2022-10-04T08:03:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sellkit/1.3.1/code/includes/elementor/modules/order-details/items/payment-method.php#L10-L20`.

```php
<?php
/**
 * Add Order Details Payment Method Items.
 *
 * @package JupiterX_Core\sellkit
 * @since 1.1.0
 */

namespace Sellkit\Elementor\Modules\Order_Details\Items;

defined( 'ABSPATH' ) || die();

use Elementor\Plugin as Elementor;

/**
 * Payment Method Item.
 *
 * Initializing the payment method item by extending item base abstract class.
 *
 * @since 1.1.0
 */
class Payment_Method extends Item_Base {

	/**
	 * Get Item class postfix.
	 *
	 * Retrieve the Item class postfix.
	 *
	 * @since 1.1.0
	 * @access public
	 *
	 * @return string Item class postfix.
	 */
	public function get_class_name() {
		return 'payment';
	}
	/**
	 * Get Item type.
	 *
	 * Retrieve the Item type.
	 *
	 * @since 1.1.0
	 * @access public
	 *
	 * @return string Item type.
	 */
	public function get_type() {
		return 'payment_method';
	}

	/**
	 * Add render attribute.
	 *
	 * Add render attributes for each item based on the settings.
	 *
	 * @since 1.1.0
	 * @access public
	 */
	public function add_field_render_attribute() {
		$attributes = [
			'class' => 'order-details-item-content',
			'id' => 'order-details-' . $this->get_id(),
		];

		$this->widget->add_render_attribute( 'order-details-item-' . $this->get_id(), $attributes );
	}

	/**
	 * Render content.
	 *
	 * Render the item content.
	 *
	 * @since 1.1.0
	 * @access public
	 * @param object $order_data Order data.
	 */
	public function render_content( $order_data ) {
		?>
		<strong
			<?php
				echo $this->widget->get_render_attribute_string( 'order-details-item-' . $this->get_id() );
			?>
			>
			<?php
				echo $order_data['payment_method'];
			?>
		</strong>
		<?php
	}

	/**
	 * Render dummy content.
	 *
	 * Render the Item dummy content.
	 *
	 * @since 1.1.0
	 * @access public
	 */
	public function render_dummy_content() {
		?>
		<strong
			<?php
				echo $this->widget->get_render_attribute_string( 'order-details-item-' . $this->get_id() );
			?>
			>
			<?php
				echo __( 'Cash on delivery...( payment method )', 'sellkit' )
			?>
		</strong>
		<?php
	}
}

```
