diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Block/Adminhtml/Config/Fieldset.php b/Block/Adminhtml/Config/Fieldset.php old mode 100644 new mode 100755 diff --git a/Block/Adminhtml/Config/NotificationEndpoint.php b/Block/Adminhtml/Config/NotificationEndpoint.php old mode 100644 new mode 100755 diff --git a/Block/Adminhtml/Config/Version.php b/Block/Adminhtml/Config/Version.php old mode 100644 new mode 100755 diff --git a/Block/Adminhtml/Order/View/Tab/Info.php b/Block/Adminhtml/Order/View/Tab/Info.php old mode 100644 new mode 100755 diff --git a/Block/Info/Snap.php b/Block/Info/Snap.php old mode 100644 new mode 100755 diff --git a/Block/Payment/Multishipping.php b/Block/Payment/Multishipping.php old mode 100644 new mode 100755 diff --git a/Controller/Payment/AbstractAction.php b/Controller/Payment/AbstractAction.php old mode 100644 new mode 100755 diff --git a/Controller/Payment/Action.php b/Controller/Payment/Action.php old mode 100644 new mode 100755 diff --git a/Controller/Payment/Multishipping.php b/Controller/Payment/Multishipping.php old mode 100644 new mode 100755 diff --git a/Controller/Payment/Notification.php b/Controller/Payment/Notification.php index 4e0b488..67f54c7 100755 --- a/Controller/Payment/Notification.php +++ b/Controller/Payment/Notification.php @@ -6,11 +6,15 @@ use Magento\Sales\Model\Order; use Midtrans\Snap\Gateway\Utility\PaymentUtils; +use Magento\Framework\App\CsrfAwareActionInterface; +use Magento\Framework\App\RequestInterface; +use Magento\Framework\App\Request\InvalidRequestException; + /** * Class Notification * Handle notifications from midtrans http notifications */ -class Notification extends Action +class Notification extends Action implements CsrfAwareActionInterface { /** * Main function @@ -18,6 +22,17 @@ class Notification extends Action * @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface * @throws \Exception */ + + public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException + { + return null; + } + + public function validateForCsrf(RequestInterface $request): ?bool + { + return true; + } + public function execute() { // 1. Get body from request @@ -227,8 +242,8 @@ private function processRefund(Order $orderRefund, $refunds, $isFromMagento, $gr } } /** - Skip refund process if not qualified - */ + Skip refund process if not qualified + */ else { $this->getResponse()->setBody('OK'); } diff --git a/Controller/Payment/OverviewPost.php b/Controller/Payment/OverviewPost.php old mode 100644 new mode 100755 diff --git a/Gateway/Utility/PaymentUtils.php b/Gateway/Utility/PaymentUtils.php old mode 100644 new mode 100755 diff --git a/Helper/MidtransDataConfiguration.php b/Helper/MidtransDataConfiguration.php old mode 100644 new mode 100755 diff --git a/Helper/Utils.php b/Helper/Utils.php old mode 100644 new mode 100755 diff --git a/LICENSE.txt b/LICENSE.txt old mode 100644 new mode 100755 diff --git a/Logger/Handler/BaseLogger.php b/Logger/Handler/BaseLogger.php old mode 100644 new mode 100755 diff --git a/Logger/Handler/ErrorLogger.php b/Logger/Handler/ErrorLogger.php old mode 100644 new mode 100755 diff --git a/Logger/Handler/NotificationLogger.php b/Logger/Handler/NotificationLogger.php old mode 100644 new mode 100755 diff --git a/Logger/Handler/RequestLogger.php b/Logger/Handler/RequestLogger.php old mode 100644 new mode 100755 diff --git a/Logger/MidtransLogger.php b/Logger/MidtransLogger.php old mode 100644 new mode 100755 diff --git a/Model/Config/Source/Payment/AbstractPayment.php b/Model/Config/Source/Payment/AbstractPayment.php old mode 100644 new mode 100755 diff --git a/Model/Config/Source/Payment/Installment.php b/Model/Config/Source/Payment/Installment.php old mode 100644 new mode 100755 diff --git a/Model/Config/Source/Payment/Offline.php b/Model/Config/Source/Payment/Offline.php old mode 100644 new mode 100755 diff --git a/Model/Config/Source/Payment/Settings.php b/Model/Config/Source/Payment/Settings.php old mode 100644 new mode 100755 diff --git a/Model/Config/Source/Payment/Specific.php b/Model/Config/Source/Payment/Specific.php old mode 100644 new mode 100755 diff --git a/Model/Order/OrderRepository.php b/Model/Order/OrderRepository.php old mode 100644 new mode 100755 diff --git a/Model/PaymentRequestRepository.php b/Model/PaymentRequestRepository.php old mode 100644 new mode 100755 diff --git a/Model/Ui/InstallmentConfigProvider.php b/Model/Ui/InstallmentConfigProvider.php old mode 100644 new mode 100755 diff --git a/Model/Ui/OfflineConfigProvider.php b/Model/Ui/OfflineConfigProvider.php old mode 100644 new mode 100755 diff --git a/Model/Ui/SpecificConfigProvider.php b/Model/Ui/SpecificConfigProvider.php old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/etc/adminhtml/di.xml b/etc/adminhtml/di.xml old mode 100644 new mode 100755 diff --git a/etc/adminhtml/system/midtrans_getting_started.xml b/etc/adminhtml/system/midtrans_getting_started.xml old mode 100644 new mode 100755 diff --git a/etc/adminhtml/system/midtrans_settings.xml b/etc/adminhtml/system/midtrans_settings.xml old mode 100644 new mode 100755 diff --git a/etc/adminhtml/system/midtrans_snap_basic_payment.xml b/etc/adminhtml/system/midtrans_snap_basic_payment.xml old mode 100644 new mode 100755 diff --git a/etc/adminhtml/system/midtrans_snap_installment_payment.xml b/etc/adminhtml/system/midtrans_snap_installment_payment.xml old mode 100644 new mode 100755 diff --git a/etc/adminhtml/system/midtrans_snap_offline_payment.xml b/etc/adminhtml/system/midtrans_snap_offline_payment.xml old mode 100644 new mode 100755 diff --git a/etc/adminhtml/system/midtrans_snap_specific_payment.xml b/etc/adminhtml/system/midtrans_snap_specific_payment.xml old mode 100644 new mode 100755 diff --git a/etc/csp_whitelist.xml b/etc/csp_whitelist.xml old mode 100644 new mode 100755 diff --git a/etc/payment.xml b/etc/payment.xml old mode 100644 new mode 100755 diff --git a/view/adminhtml/layout/adminhtml_system_config_edit.xml b/view/adminhtml/layout/adminhtml_system_config_edit.xml old mode 100644 new mode 100755 diff --git a/view/adminhtml/layout/sales_order_view.xml b/view/adminhtml/layout/sales_order_view.xml old mode 100644 new mode 100755 diff --git a/view/adminhtml/templates/order/view/tab/Info.phtml b/view/adminhtml/templates/order/view/tab/Info.phtml old mode 100644 new mode 100755 diff --git a/view/adminhtml/web/midtrans-logo.svg b/view/adminhtml/web/midtrans-logo.svg old mode 100644 new mode 100755 diff --git a/view/adminhtml/web/styles.css b/view/adminhtml/web/styles.css old mode 100644 new mode 100755 diff --git a/view/frontend/layout/multishipping_checkout_billing.xml b/view/frontend/layout/multishipping_checkout_billing.xml old mode 100644 new mode 100755 diff --git a/view/frontend/layout/snap_payment_multishipping.xml b/view/frontend/layout/snap_payment_multishipping.xml old mode 100644 new mode 100755 diff --git a/view/frontend/templates/multishipping/installment.phtml b/view/frontend/templates/multishipping/installment.phtml old mode 100644 new mode 100755 diff --git a/view/frontend/templates/multishipping/multishipping.phtml b/view/frontend/templates/multishipping/multishipping.phtml old mode 100644 new mode 100755 diff --git a/view/frontend/templates/multishipping/snap.phtml b/view/frontend/templates/multishipping/snap.phtml old mode 100644 new mode 100755 diff --git a/view/frontend/templates/multishipping/specific.phtml b/view/frontend/templates/multishipping/specific.phtml old mode 100644 new mode 100755 diff --git a/view/frontend/web/js/view/payment/method-renderer/installment-method.js b/view/frontend/web/js/view/payment/method-renderer/installment-method.js old mode 100644 new mode 100755 diff --git a/view/frontend/web/js/view/payment/method-renderer/offline-method.js b/view/frontend/web/js/view/payment/method-renderer/offline-method.js old mode 100644 new mode 100755 diff --git a/view/frontend/web/js/view/payment/method-renderer/specific-method.js b/view/frontend/web/js/view/payment/method-renderer/specific-method.js old mode 100644 new mode 100755 diff --git a/view/frontend/web/template/payment/installment.html b/view/frontend/web/template/payment/installment.html old mode 100644 new mode 100755 diff --git a/view/frontend/web/template/payment/offline.html b/view/frontend/web/template/payment/offline.html old mode 100644 new mode 100755 diff --git a/view/frontend/web/template/payment/specific.html b/view/frontend/web/template/payment/specific.html old mode 100644 new mode 100755