# sellkit/1.6.2/includes/elementor/modules/checkout/templates/payment.php

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

- Page: https://pluginprobe.com/plugins/sellkit/1.6.2/code/includes/elementor/modules/checkout/templates/payment.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.6.2/raw/includes/elementor/modules/checkout/templates/payment.php
- Modified: 2023-04-13T06:28:42+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.6.2/code/includes/elementor/modules/checkout/templates/payment.php#L10-L20`.

```php
<?php
/**
 * Checkout Payment Section
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/checkout/payment.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see     https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce\Templates
 * @version 3.5.3
 */

defined( 'ABSPATH' ) || exit;

if ( ! wp_doing_ajax() ) {
	do_action( 'woocommerce_review_order_before_payment' );
}
?>

<?php if ( ! wp_doing_ajax() ) : ?>
<section>
	<h4 id="payment_method_title" class="sellkit-one-page-checkout-payment-heading heading"><?php echo __( 'Payment', 'sellkit' ); ?></h4>
	<p class="sellkit-one-page-checkout-payment-desc sub-heading">
		<?php echo apply_filters( 'sellkit_core/widgets/checkout/custom_message/secure_transaction_text', __( 'All transactions are secure and encrypted.', 'sellkit' ) ); ?>
	</p>

	<?php endif; ?>

	<div id="payment" class="woocommerce-checkout-payment sellkit-one-page-checkout-payment-methods sellkit-checkout-widget-divider">
		<?php if ( WC()->cart->needs_payment() ) : ?>
			<ul class="wc_payment_methods payment_methods methods">
				<?php
				if ( ! empty( $available_gateways ) ) {
					foreach ( $available_gateways as $gateway ) {
						wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
						echo '<hr class="sellkit-checkout-widget-divider">';
					}
				} else {
					echo '<li class="woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine
				}
				?>
			</ul>
		<?php endif; ?>
	</div>

<?php
if ( ! wp_doing_ajax() ) {
	echo '</section>';
	do_action( 'woocommerce_review_order_after_payment' );
}

```
