14 $content =
'<img src=\"' .
$block->getViewFileUrl(
'Magento_Checkout::cvv.png') .
'\" alt=\"' .
15 $block->escapeHtml(
__(
'Card Verification Number Visual Reference')) .
'\" title=\"' .
16 $block->escapeHtml(
__(
'Card Verification Number Visual Reference')) .
'\" />';
19 <!-- IFRAME
for request to Payment Gateway -->
20 <iframe width=
"0" height=
"0" id=
"<?= /* @noescape */ $code ?>-transparent-iframe" 21 data-container=
"<?= /* @noEscape */ $code ?>-transparent-iframe" allowtransparency=
"true" 22 frameborder=
"0" name=
"iframeTransparent" style=
"display:none;width:100%;background-color:transparent" 23 src=
"<?= $block->escapeUrl($block->getViewFileUrl('blank.html')) ?>"></iframe>
24 <
form class=
"form" id=
"co-transparent-form" action=
"#" method=
"post" data-
mage-init=
'{ 26 "controller":"<?= $block->escapeHtml($block->getRequest()->getControllerName()) ?>", 27 "gateway":"<?= /* @noEscape */ $code ?>", 28 "orderSaveUrl":"<?= $block->escapeUrl($block->getOrderUrl()) ?>", 29 "cgiUrl":"<?= $block->escapeUrl($block->getCgiUrl()) ?>", 30 "dateDelim":"<?= $block->escapeHtml($block->getDateDelim()) ?>", 31 "cardFieldsMap":<?= $block->escapeHtml($block->getCardFieldsMap()) ?>, 32 "nativeAction":"<?= $block->escapeUrl($block->getUrl('checkout/onepage/saveOrder
', ['_secure
' => $block->getRequest()->isSecure()])) ?>" 34 <fieldset
class=
"fieldset ccard <?= /* @noEscape */ $code ?>" id=
"payment_form_<?= /* @noEscape */ $code ?>">
35 <legend
class=
"legend">
36 <span><?=
$block->escapeHtml(
__(
'Credit Card Information')) ?></span>\
38 <div
class=
"field required type">
39 <label
for=
"<?= /* @noEscape */ $code ?>_cc_type" class=
"label">
40 <span><?=
$block->escapeHtml(
__(
'Credit Card Type')) ?></span>
43 <select
id=
"<?= /* @noEscape */ $code ?>_cc_type" data-container=
"<?= /* @noEscape */ $code ?>-cc-type" 44 name=
"payment[cc_type]" 47 "validate-cc-type-select":"#<?= /* @noEscape */ $code ?>_cc_number" 49 <option
value=
""><?=
$block->escapeHtml(
__(
'--Please Select--')) ?></option>
50 <?php
foreach (
$block->getCcAvailableTypes() as $typeCode => $typeName): ?>
51 <option
value=
"<?= $block->escapeHtml($typeCode) ?>" 52 <?php
if ($typeCode ==
$ccType): ?> selected=
"selected"<?php
endif; ?>>
53 <?=
$block->escapeHtml($typeName) ?></option>
58 <div
class=
"field required number">
59 <label
for=
"<?= /* @noEscape */ $code ?>_cc_number" class=
"label">
60 <span><?=
$block->escapeHtml(
__(
'Credit Card Number')) ?></span>
63 <input type=
"number" id=
"<?= /* @noEscape */ $code ?>_cc_number" 64 data-container=
"<?= /* @noEscape */ $code ?>-cc-number" name=
"payment[cc_number]" 65 title=
"<?= $block->escapeHtml(__('Credit Card Number')) ?>" class=
"input-text" value=
"" 67 "required-number":true, 68 "validate-cc-number":"#<?= /* @noEscape */ $code ?>_cc_type", 69 "validate-cc-type":"#<?= /* @noEscape */ $code ?>_cc_type" 74 <div
class=
"field required date" id=
"<?= /* @noEscape */ $code ?>_cc_type_exp_div">
75 <label
for=
"<?= /* @noEscape */ $code ?>_expiration" class=
"label">
76 <span><?=
$block->escapeHtml(
__(
'Expiration Date')) ?></span>
79 <div
class=
"fields group group-2">
80 <div
class=
"field no-label month">
82 <select
id=
"<?= /* @noEscape */ $code ?>_expiration" name=
"payment[cc_exp_month]" 83 data-container=
"<?= /* @noEscape */ $code ?>-cc-month" class=
"month" 86 "validate-cc-exp":"#<?= /* @noEscape */ $code ?>_expiration_yr" 88 <?php
foreach (
$block->getCcMonths() as $k => $v): ?>
89 <option
value=
"<?= /* @noEscape */ $k ? $block->escapeHtml($k) : '' ?>" 91 <?=
$block->escapeHtml($v) ?>
97 <div
class=
"field no-label year">
99 <select
id=
"<?= /* @noEscape */ $code ?>_expiration_yr" name=
"payment[cc_exp_year]" 100 class=
"year" data-container=
"<?= /* @noEscape */ $code ?>-cc-year" 101 data-validate=
'{required:true}'>
102 <?php
foreach (
$block->getCcYears() as $k => $v): ?>
103 <option
value=
"<?= /* @noEscape */ $k ? $block->escapeHtml($k) : '' ?>" 105 <?=
$block->escapeHtml($v) ?>
114 <?php
if (
$block->hasVerification()): ?>
115 <div
class=
"field required cvv" id=
"<?= /* @noEscape */ $code ?>_cc_type_cvv_div">
116 <label
for=
"<?= /* @noEscape */ $code ?>_cc_cid" class=
"label">
117 <span><?=
$block->escapeHtml(
__(
'Card Verification Number')) ?></span>
119 <div
class=
"control">
120 <input type=
"number" title=
"<?= $block->escapeHtml(__('Card Verification Number')) ?>" 121 data-container=
"<?= /* @noEscape */ $code ?>-cc-cvv" class=
"input-text cvv" 122 id=
"<?= /* @noEscape */ $code ?>_cc_cid" name=
"payment[cc_cid]" value=
"" 124 "required-number":true, 125 "validate-cc-cvn":"#<?= /* @noEscape */ $code ?>_cc_type" 126 }' autocomplete=
"off"/>
128 <a href=
"#" id=
"<?= /* @noEscape */ $code ?>-cvv-what-is-this" class=
"action cvv" 129 title=
"<?= $block->escapeHtml(__('What is this?')) ?>" data-
mage-init=
'{ 130 "tooltip": {"content": "<?= /* @noEscape */ $content ?>"} 132 <span><?=
$block->escapeHtml(
__(
'What is this?')) ?></span>
138 <?=
$block->getChildHtml() ?>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $form)() ?>< script > require(['jquery' mage mage
jquery extjs ext tree mage adminhtml form
if($block->getLink()) line height