<?php
/**
 * GurmePOS Form Data
 *
 * ÖNEMLİ : Bu şablon ödeme geçitleri tarafından kullanılmaktadır. Değiştirilmesi tavsiye edilmez.
 *
 * @package GurmeHub
 *
 * @var string $action
 * @var array $form_data
 */

defined( 'ABSPATH' ) || exit;

?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
	</head>
	<body>
		<form 
			id="gpos-form" 
			action="<?php echo $action; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" 
			method="<?php echo isset( $method ) ? esc_attr( $method ) : 'POST'; ?>"
		> 
		<?php foreach ( $form_data as $name => $value ) : ?>
			<input type="hidden" name="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $value ); ?>" />
		<?php endforeach; ?>
		</form>
	</body>
	<footer>
		<script>
			document.getElementById('gpos-form').submit()
		</script>
	</footer>
</html>
