@@ -22,8 +22,9 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
22
22
<select id="<?= /* @noEscape */ $ code ?> _cc_type" name="payment[cc_type]"
23
23
class="required-entry validate-cc-type-select admin__control-select">
24
24
<option value=""></option>
25
- <?php foreach ($ block ->getCcAvailableTypes () as $ typeCode => $ typeName ) : ?>
26
- <option value="<?= $ block ->escapeHtmlAttr ($ typeCode ) ?> " <?php if ($ typeCode == $ ccType ) : ?> selected="selected"<?php endif ?> >
25
+ <?php foreach ($ block ->getCcAvailableTypes () as $ typeCode => $ typeName ): ?>
26
+ <option value="<?= $ block ->escapeHtmlAttr ($ typeCode ) ?> "
27
+ <?php if ($ typeCode == $ ccType ): ?> selected="selected"<?php endif ?> >
27
28
<?= $ block ->escapeHtml ($ typeName ) ?>
28
29
</option>
29
30
<?php endforeach ?>
@@ -35,8 +36,14 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
35
36
<span><?= $ block ->escapeHtml (__ ('Credit Card Number ' )) ?> </span>
36
37
</label>
37
38
<div class="admin__field-control">
38
- <input type="text" id="<?= /* @noEscape */ $ code ?> _cc_number" name="payment[cc_number]"
39
- title="<?= $ block ->escapeHtmlAttr (__ ('Credit Card Number ' )) ?> " class="admin__control-text validate-cc-number"
39
+ <input type="text"
40
+ id="<?= /* @noEscape */ $ code ?> _cc_number"
41
+ name="payment[cc_number]"
42
+ oncopy="return false;"
43
+ oncut="return false;"
44
+ onpaste="return false;"
45
+ title="<?= $ block ->escapeHtmlAttr (__ ('Credit Card Number ' )) ?> "
46
+ class="admin__control-text validate-cc-number"
40
47
value="<?= /* @noEscape */ $ block ->getInfoData ('cc_number ' ) ?> "/>
41
48
</div>
42
49
</div>
@@ -47,35 +54,40 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
47
54
<div class="admin__field-control">
48
55
<select id="<?= /* @noEscape */ $ code ?> _cc_exp_month" name="payment[cc_exp_month]"
49
56
class="admin__control-select admin__control-select-month validate-cc-exp required-entry">
50
- <?php foreach ($ block ->getCcMonths () as $ k => $ v ) : ?>
57
+ <?php foreach ($ block ->getCcMonths () as $ k => $ v ): ?>
51
58
<option value="<?= $ block ->escapeHtmlAttr ($ k ) ?> "
52
- <?php if ($ k == $ ccExpMonth ) : ?> selected="selected"<?php endif ?> >
59
+ <?php if ($ k == $ ccExpMonth ): ?> selected="selected"<?php endif ?> >
53
60
<?= $ block ->escapeHtml ($ v ) ?>
54
61
</option>
55
62
<?php endforeach ; ?>
56
63
</select>
57
64
<select id="<?= /* @noEscape */ $ code ?> _cc_exp_year" name="payment[cc_exp_year]"
58
65
class="admin__control-select admin__control-select-year required-entry">
59
- <?php foreach ($ block ->getCcYears () as $ k => $ v ) : ?>
66
+ <?php foreach ($ block ->getCcYears () as $ k => $ v ): ?>
60
67
<option value="<?= /* @noEscape */ $ k ? $ block ->escapeHtml ($ k ) : '' ?> "
61
- <?php if ($ k == $ ccExpYear ) : ?> selected="selected"<?php endif ?> >
68
+ <?php if ($ k == $ ccExpYear ): ?> selected="selected"<?php endif ?> >
62
69
<?= $ block ->escapeHtml ($ v ) ?>
63
70
</option>
64
71
<?php endforeach ?>
65
72
</select>
66
73
</div>
67
74
</div>
68
75
69
- <?php if ($ block ->isCvvEnabled ()) : ?>
76
+ <?php if ($ block ->isCvvEnabled ()): ?>
70
77
<div class="field-number required admin__field _required">
71
78
<label class="admin__field-label" for="<?= /* @noEscape */ $ code ?> _cc_cid">
72
79
<span><?= $ block ->escapeHtml (__ ('Card Verification Number ' )) ?> </span>
73
80
</label>
74
81
<div class="admin__field-control">
75
- <input type="text" title="<?= $ block ->escapeHtmlAttr (__ ('Card Verification Number ' )) ?> "
82
+ <input type="text"
83
+ title="<?= $ block ->escapeHtmlAttr (__ ('Card Verification Number ' )) ?> "
84
+ oncopy="return false;"
85
+ oncut="return false;"
86
+ onpaste="return false;"
76
87
class="required-entry validate-cc-cvn admin__control-cvn admin__control-text"
77
88
id="<?= /* @noEscape */ $ code ?> _cc_cid"
78
- name="payment[cc_cid]" value="<?= /* @noEscape */ $ block ->getInfoData ('cc_cid ' ) ?> "/>
89
+ name="payment[cc_cid]"
90
+ value="<?= /* @noEscape */ $ block ->getInfoData ('cc_cid ' ) ?> "/>
79
91
</div>
80
92
</div>
81
93
<?php endif ; ?>
0 commit comments