diff --git a/src/PaymentMethods/PaymentFieldsStrategies/GiftcardFieldsStrategy.php b/src/PaymentMethods/PaymentFieldsStrategies/GiftcardFieldsStrategy.php index f9c52f32..b3a46098 100644 --- a/src/PaymentMethods/PaymentFieldsStrategies/GiftcardFieldsStrategy.php +++ b/src/PaymentMethods/PaymentFieldsStrategies/GiftcardFieldsStrategy.php @@ -26,9 +26,13 @@ public function execute($gateway, $dataHelper) if (count($issuers) === 1) { $issuer = $issuers[0]; $issuerImageSvg = $this->checkSvgIssuers($issuers); - $issuerImageSvg && ($html .= ''); - $html .= $issuer->name; - echo esc_html(wpautop(wptexturize($html))); + if ($issuerImageSvg && isset($issuer->name)) { + $issuerImageSvg = esc_url($issuerImageSvg); + $issuerName = esc_html($issuer->name); + $html .= '' . $issuerName; + } + + echo wpautop(wptexturize($html)); return; }