';
}
if ( ! wp_doing_ajax() ) {
?>
cart ) && WC()->cart->needs_payment() ) : ?>
payment_gateways->get_available_payment_gateways();
if ( ! empty( $available_gateways ) ) {
foreach ( $available_gateways as $gateway ) {
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
echo '
';
}
} else {
$wc_no_available_payment = 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.', 'sellkit' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'sellkit' ) );
echo '- ' . wp_kses_post( $wc_no_available_payment ) . '
';
}
?>
';
do_action( 'woocommerce_review_order_after_payment' );
}
$final_content = ob_get_clean();
return str_replace( '', $final_content . '', $content );
}
}