diff --git a/Concrete/Magento2PlatformOrderDecorator.php b/Concrete/Magento2PlatformOrderDecorator.php index 47e884c1..13ff0123 100644 --- a/Concrete/Magento2PlatformOrderDecorator.php +++ b/Concrete/Magento2PlatformOrderDecorator.php @@ -1140,19 +1140,6 @@ private function extractPaymentDataFromPagarmeBillet( $newPaymentData = new \stdClass(); $newPaymentData->amount = $this->moneyService->floatToCents($this->platformOrder->getGrandTotal()); - $moduleConfiguration = MPSetup::getModuleConfiguration(); - $newPaymentData->instructions = $moduleConfiguration->getBoletoInstructions(); - $bankConfig = new Bank(); - $bankNumber = $bankConfig->getBankNumber(MPSetup::getModuleConfiguration()->getBoletoBankCode()); - if ($bankNumber) { - $newPaymentData->bank = $bankNumber; - } - $expirationDate = new \DateTime(); - $days = MPSetup::getModuleConfiguration()->getBoletoDueDays(); - if ($days) { - $expirationDate->modify("+{$days} day"); - } - $newPaymentData->due_at = $expirationDate->format('c'); $boletoDataIndex = BoletoPayment::getBaseCode(); if (!isset($paymentData[$boletoDataIndex])) { diff --git a/etc/adminhtml/system/transaction/billet.xml b/etc/adminhtml/system/transaction/billet.xml index dea9861b..d82eb5f3 100644 --- a/etc/adminhtml/system/transaction/billet.xml +++ b/etc/adminhtml/system/transaction/billet.xml @@ -36,7 +36,6 @@ 1 1 - required-entry