echo $klarna_layout;
    ?>
',
			});
		});
	</script>
	<span id="klarna-account-terms"></span>
	<div class="clear"></div>

	<fieldset>
		<p class="form-row form-row-wide">
			<?php 
    $country = $this->klarna_helper->get_klarna_country();
    $klarna = new Klarna();
    $this->configure_klarna($klarna, $country);
    $klarna_pclasses = new WC_Gateway_Klarna_PClasses($klarna, $pclass_type, $country);
    $pclasses = $klarna_pclasses->get_pclasses_for_country_and_type();
    if ($pclasses) {
        ?>

				<label for="<?php 
        echo esc_attr($klarna_select_pclass_element);
        ?>
">
					<?php 
        echo __("Payment plan", 'woocommerce-gateway-klarna');
        ?>
 <span class="required">*</span>
				</label>

				<select id="<?php 
 /**
  * Checks if there are PClasses.
  *
  * @since  2.0
  **/
 function check_pclasses()
 {
     $country = $this->klarna_helper->get_klarna_country();
     $klarna = new Klarna();
     $this->configure_klarna($klarna, $country);
     $klarna_pclasses = new WC_Gateway_Klarna_PClasses($klarna, false, $country);
     $pclasses = $klarna_pclasses->fetch_pclasses();
     if (empty($pclasses)) {
         return false;
     }
     return true;
 }