Skip to content

Commit

Permalink
Card logo
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jan 9, 2024
1 parent f520e6b commit 951ea92
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Model/ApiFacade/TpayConfig/ConfigOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public function getCardConfig()
return [
'tpaycards' => [
'payment' => [
'tpayLogoUrl' => $this->generateURL('tpaycom_magento2cards::images/logo_tpay.png'),
'getTpayLoadingGif' => $this->generateURL('tpaycom_magento2cards::images/loading.gif'),
'tpayLogoUrl' => $this->generateURL('tpaycom_magento2basic::images/logo_tpay.png'),
'getTpayLoadingGif' => $this->generateURL('tpaycom_magento2basic::images/loading.gif'),
'getRSAkey' => $this->tpay->getRSAKey(),
'fetchJavaScripts' => $this->fetchJavaScripts(),
'addCSS' => $this->createCSS('tpaycom_magento2basic::css/tpaycards.css'),
Expand Down
6 changes: 3 additions & 3 deletions Model/ApiFacade/TpayConfig/ConfigOrigin.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ private function getCardConfig()
return [
'tpaycards' => [
'payment' => [
'tpayLogoUrl' => $this->generateURL('tpaycom_magento2cards::images/logo_tpay.png'),
'getTpayLoadingGif' => $this->generateURL('tpaycom_magento2cards::images/loading.gif'),
'tpayLogoUrl' => $this->generateURL('tpaycom_magento2basic::images/logo_tpay.png'),
'getTpayLoadingGif' => $this->generateURL('tpaycom_magento2basic::images/loading.gif'),
'getRSAkey' => $this->tpay->getRSAKey(),
'fetchJavaScripts' => $this->fetchJavaScripts(),
'addCSS' => $this->createCSS('tpaycom_magento2cards::css/tpaycards.css'),
'addCSS' => $this->createCSS('tpaycom_magento2basic::css/tpaycards.css'),
'redirectUrl' => $this->tpay->getPaymentRedirectUrl(),
'isCustomerLoggedIn' => $this->tpay->isCustomerLoggedIn(),
'customerTokens' => $customerTokensData,
Expand Down
Binary file added view/base/web/images/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion view/frontend/web/template/payment/card-tpay-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class="radio"
data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
<label data-bind="attr: {'for': getCode()}" class="label">
<!-- <img data-bind="attr: {src: cardGetLogoUrl(), alt: $t('tpay.com')}" class="payment-icon"/>-->
<img data-bind="attr: {src: cardGetLogoUrl(), alt: $t('tpay.com')}" class="payment-icon"/>
<span data-bind="text: getTitle()"></span>
</label>
</div>
Expand Down

0 comments on commit 951ea92

Please sign in to comment.