diff --git a/src/Payone/Gateway/CreditCard.php b/src/Payone/Gateway/CreditCard.php index f1f1992..c2c5aa8 100644 --- a/src/Payone/Gateway/CreditCard.php +++ b/src/Payone/Gateway/CreditCard.php @@ -344,9 +344,9 @@ public function generate_cc_brands_html( $key, $data ) { $out .= ''; $selected_brands = (array) $this->get_option( $key ); - foreach ( $data['options'] as $brand_key => $brand_label ) { - $out .= '
'; + $out .= '
'; + foreach ( $data['options'] as $brand_key => $brand_label ) { if ( in_array( $brand_key, $selected_brands, true ) ) { $checked = ' checked="checked"'; } else { @@ -355,18 +355,18 @@ public function generate_cc_brands_html( $key, $data ) { $checkbox_id = $this->get_field_key( $key ); $checkbox_name = $checkbox_id . '[]'; - $out .= ''; $text_input_name = 'cc_brand_label_' . $brand_key; $value = $this->get_option( $text_input_name ); $text_input_name = $this->plugin_id . $this->id . '_' . $text_input_name; - $out .= ''; + $out .= ''; - $out .= ''; + $out .= ''; } - $out .= ''; + $out .= '
'; + $out .= $brand_label . '
'; return $out; }