Skip to content

Commit

Permalink
Replaced string with a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Onufriichuk committed May 29, 2024
1 parent dabf1e2 commit 4a6ddc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Observer/Model/ProcessOrder/CardsMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Magento\Sales\Api\OrderRepositoryInterface;
use Magento\Sales\Model\ResourceModel\Order\Payment as PaymentResource;
use Psr\Log\LoggerInterface;
use Rvvup\Payments\Gateway\Method;

class CardsMetadata implements ObserverInterface
{
Expand Down Expand Up @@ -114,7 +115,7 @@ private function populateCardData(
): void {
if (isset($paymentData[$key])) {
$value = $this->mapCardValue($paymentData[$key]);
$payment->setAdditionalInformation('rvvup_' . $key, $paymentData[$key]);
$payment->setAdditionalInformation(Method::PAYMENT_TITLE_PREFIX . $key, $paymentData[$key]);
$data[$key] = $key . ': ' . $value;
}
}
Expand Down

0 comments on commit 4a6ddc1

Please sign in to comment.