# sureforms/2.12.8/inc/blocks/payment-history/block.php

SureForms – Contact Form Builder, AI Forms, Payment Form, Survey &amp; Quiz, version 2.12.8. 44 lines.

- Page: https://pluginprobe.com/plugins/sureforms/2.12.8/code/inc/blocks/payment-history/block.php
- Raw: https://pluginprobe.com/plugins/sureforms/2.12.8/raw/inc/blocks/payment-history/block.php
- Modified: 2026-04-16T10:46:24+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/sureforms/2.12.8/code/inc/blocks/payment-history/block.php#L10-L20`.

```php
<?php
/**
 * Payment History Block.
 *
 * Server-side rendering for the Payment History Gutenberg block.
 * Delegates to the Payment_History_Shortcode class for output.
 *
 * @package sureforms
 * @since 2.8.0
 */

namespace SRFM\Inc\Blocks\Payment_History;

use SRFM\Inc\Blocks\Base;
use SRFM\Inc\Payments\Payment_History_Shortcode;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Payment History Block.
 *
 * @since 2.8.0
 */
class Block extends Base {
	/**
	 * Render the block.
	 *
	 * @param array<mixed> $attributes Block attributes.
	 * @since 2.8.0
	 * @return string
	 */
	public function render( $attributes ) {
		$shortcode_atts = [
			'per_page'          => isset( $attributes['perPage'] ) && is_numeric( $attributes['perPage'] ) ? strval( absint( $attributes['perPage'] ) ) : '10',
			'show_subscription' => ! empty( $attributes['showSubscription'] ) ? 'true' : 'false',
		];

		$shortcode_instance = Payment_History_Shortcode::get_instance();
		return $shortcode_instance->render( $shortcode_atts );
	}
}

```
