Skip to content

Commit

Permalink
Display cards logo on order details when click to pay is used
Browse files Browse the repository at this point in the history
ISSUE: ADCRSET1G-24
  • Loading branch information
Tamara committed Apr 24, 2024
1 parent c7828e7 commit 6194039
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adyenofficial.php
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,11 @@ private function displayTabContent(int $orderId): string
$generalSettings = \Adyen\Core\BusinessLogic\AdminAPI\AdminAPI::get()->generalSettings((string)\Context::getContext()->shop->id)->getGeneralSettings();
$paymentLinkEnabled = $generalSettings->isSuccessful() && $generalSettings->toArray()['enablePayByLink'];

if ($authorisationDetail['paymentMethod'] && strpos($authorisationDetail['paymentMethod'], 'clicktopay')) {
$authorisationDetail['paymentMethod'] = str_replace('visa_clicktopay', 'card', $authorisationDetail['paymentMethod']);
$authorisationDetail['paymentMethod'] = str_replace('mc_clicktopay', 'card', $authorisationDetail['paymentMethod']);
}

\AdyenPayment\Classes\Bootstrap::init();
$this->getContext()->smarty->assign([
'transactionDate' => $authorisationDetail['date'] ?? '',
Expand Down

0 comments on commit 6194039

Please sign in to comment.