@@ -9,23 +9,22 @@ use Magento\Vault\Api\Data\PaymentTokenInterface;
9
9
10
10
/** @var VaultTokenRenderer $block */
11
11
12
- $ payerEmail = $ block ->escapeHtml ($ block ->getPayerEmail ());
12
+ $ payerEmail = $ block ->getPayerEmail ();
13
+ $ confirmDeleteMessage = sprintf ('%s: %s? ' , __ ('Are you sure you want to delete this PayPal account ' ), $ payerEmail );
13
14
?>
14
15
<tr>
15
16
<td data-th="<?php echo $ block ->escapeHtml (__ ('PayPal Account ' )); ?> " class="col paypal-account">
16
17
<img src="<?php /* @noEscape */ echo $ block ->getIconUrl (); ?> "
17
18
width="<?php /* @noEscape */ echo $ block ->getIconWidth (); ?> "
18
19
height="<?php /* @noEscape */ echo $ block ->getIconHeight (); ?> "
19
- alt="<?php echo $ block ->escapeHtml (__ ('PayPal Logo ' )); ?> "
20
- >
21
- <span><?php /* @noEscape */ echo $ payerEmail ; ?> </span>
20
+ alt="<?php echo $ block ->escapeHtml (__ ('PayPal Logo ' )); ?> ">
21
+ <span><?php echo $ block ->escapeHtml ($ payerEmail ); ?> </span>
22
22
</td>
23
23
<td data-th="<?php echo $ block ->escapeHtml (__ ('Actions ' )); ?> " class="col actions">
24
24
<form
25
25
class="form"
26
26
action="<?php echo $ block ->escapeUrl ($ block ->getUrl ('vault/cards/deleteaction ' )); ?> "
27
- method="post"
28
- >
27
+ method="post">
29
28
<?php echo $ block ->getBlockHtml ('formkey ' ); ?>
30
29
<input
31
30
name="<?php /* @noEscape */ echo PaymentTokenInterface::PUBLIC_HASH ; ?> "
@@ -34,15 +33,14 @@ $payerEmail = $block->escapeHtml($block->getPayerEmail());
34
33
<button type="submit"
35
34
class="action delete"
36
35
data-mage-init='{
37
- "Magento_Vault/js/customer_account/deleteWidget":{
38
- "type": "popup",
39
- "modalClass": "my-credit-cards-popup",
40
- "toggleEvent": "click",
41
- "title": "<?php echo $ block ->escapeHtml (__ ('Delete ' )); ?> ",
42
- "content": "Are you sure you want to delete this PayPal account:
43
- <?php /* @noEscape */ echo $ payerEmail ; ?> ?"
44
- }
45
- }'>
36
+ "Magento_Vault/js/customer_account/deleteWidget":{
37
+ "type": "popup",
38
+ "modalClass": "my-credit-cards-popup",
39
+ "toggleEvent": "click",
40
+ "title": "<?php echo $ block ->escapeHtml (__ ('Delete ' )); ?> ",
41
+ "content":"<?php echo $ block ->escapeHtml ($ confirmDeleteMessage ); ?> "
42
+ }
43
+ }'>
46
44
<span><?php echo $ block ->escapeHtml (__ ('Delete ' )); ?> </span>
47
45
</button>
48
46
</form>
0 commit comments