This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,373 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
AuthorizeNet_CreditCard/templates/customer/vault/credit_card.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
|
||
use Magento\Framework\View\Element\Template; | ||
use Magento\Vault\Api\Data\PaymentTokenInterface; | ||
use Magento\Vault\Block\CardRendererInterface; | ||
|
||
/** @var CardRendererInterface|Template $block */ | ||
|
||
$ccNumberView = $block->escapeHtml($block->getNumberLast4Digits()); | ||
?> | ||
|
||
<tr role="row"> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Card Number')) ?>" | ||
class="col card-number" | ||
role="gridcell" | ||
> | ||
</span> | ||
<?= /* @noEscape */ $ccNumberView ?> | ||
</td> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Expiration Date')) ?>" | ||
class="col card-expire" | ||
role="gridcell" | ||
> | ||
<?= $block->escapeHtml($block->getExpDate()) ?> | ||
</td> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Type')) ?>" | ||
class="col card-type" | ||
role="gridcell" | ||
> | ||
<img | ||
class="width-initial" | ||
src="<?= /* @noEscape */ $block->getIconUrl() ?>" | ||
width="<?= /* @noEscape */ $block->getIconWidth() ?>" | ||
height="<?= /* @noEscape */ $block->getIconHeight() ?>" | ||
> | ||
</td> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Actions')) ?>" | ||
class="col actions" | ||
role="gridcell" | ||
> | ||
<form | ||
class="form" | ||
action="<?= $block->escapeUrl($block->getUrl('vault/cards/deleteaction')) ?>" | ||
method="post" | ||
> | ||
<?= $block->getBlockHtml('formkey') ?> | ||
<input | ||
name="<?= /* @noEscape */ PaymentTokenInterface::PUBLIC_HASH ?>" | ||
value="<?= /* @noEscape */ $block->getToken()->getPublicHash() ?>" | ||
type="hidden" | ||
/> | ||
<button | ||
type="submit" | ||
class=" | ||
button | ||
button--link | ||
padding-hz-0 | ||
dashboard-table__link | ||
action | ||
delete | ||
" | ||
data-mage-init='{ | ||
"Magento_Vault/js/customer_account/deleteWidget":{ | ||
"type": "popup", | ||
"modalClass": "my-credit-cards-popup", | ||
"toggleEvent": "click", | ||
"title": "<?= $block->escapeHtml(__('Delete')) ?>", | ||
"content": "Are you sure you want to delete this card: <?= | ||
/* @noEscape */ $ccNumberView | ||
?>?" | ||
} | ||
}' | ||
> | ||
<?= $block->escapeHtml(__('Delete')) ?> | ||
</button> | ||
</form> | ||
</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
20080a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: