Code Monkey home page Code Monkey logo

magento2-payment's Introduction

Moduł płatności Dotpay dla Magento 2.x

===================

Niniejszy moduł płatności jest przygotowany dla Magento w wersji 2.1 i wyższych.

Instrukcja instalacji

  1. Proszę przejść do katalogu głównego instalacji sklepu Magento
  2. Należy się upewnić, czy w pliku composer.json Magento są dodane repozytoria Dotpay. Jeśli nie, trzeba wywołać następujące komendy:
composer config repositories.dotpaySDK vcs https://github.com/dotpay/PHP-SDK

composer config repositories.magento2-payment vcs https://github.com/dotpay/magento2-payment
  1. Instalacja modułu następuje przy pomocy narzędzia composer. W katalogu głównym Magento należy wywołać następujące komendy:
composer require dotpay/magento2-payment

composer update

php bin/magento module:enable Dotpay_Payment

php bin/magento setup:upgrade
  1. Jeśli potrzeba kompilacji wstrzykiwanych zależności oraz plików statycznych, należy wywołać poniższe komendy:
php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

Odinstalowanie

  1. Proszę wykonać poniższą komendę w głownym katalogu Magento:
php bin/magento module:uninstall Dotpay_Payment -r -c

Dotpay payment module for Magento 2.1

This module is prepared for Magento version 2.1 and later.

Installation

  1. Go to the main directory of your Magento installation
  2. Make sure if the file composer.json of Magento contains repositories of Dotpay. If not, then execute following commands:
composer config repositories.dotpaySDK vcs https://github.com/dotpay/PHP-SDK

composer config repositories.magento2-payment vcs https://github.com/dotpay/magento2-payment
  1. Innstallation of the payment module is realized by using the composertool. Execute the following commands in the main directory of your Magento installation:
composer require dotpay/magento2-payment

composer update

php bin/magento module:enable Dotpay_Payment

php bin/magento setup:upgrade
  1. If you need to compile Dependency Injection and static files, execute following commands:
php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

Uninstall

  1. Execute the following command in the main directory of your Magento installation:
php bin/magento module:uninstall Dotpay_Payment -r -c

magento2-payment's People

Contributors

gnysek avatar ilnytskyi avatar mrbloodyjohn avatar pczyz avatar tbajorek avatar wpawel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2-payment's Issues

Invalid syntax for PHP7.4

Deprecated Functionality: Array and string offset access syntax with curly braces is deprecated in /var/www/html/vendor/dotpay/php-sdk/src/Locale/Adapter/AbstractAdapter.php on line 207

Deprecated syntax

When going from "My cart" to checkout it shows :

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/vendor/dotpay/php-sdk/src/Locale/Adapter/AbstractAdapter.php on line 207

Dotpay unnecessary exceptions

I enter wrong pin number on purpose. How come Dotpay module throws critical exception that pin is incorrect and backend config site in not accessible?
Of course dotpay should give you information that pin is incorrect in this case, but not throwing critical error in backend and in checkout (white page, checkout is not accessible as well).

`1 exception(s):
Exception #0 (Dotpay\Exception\BadParameter\PinException): Dotpay\Exception\BadParameter\PinException: Incorrect seller pin

Exception #0 (Dotpay\Exception\BadParameter\PinException): Dotpay\Exception\BadParameter\PinException: Incorrect seller pin
#0 /var/www/html/vendor/dotpay/php-sdk/src/Model/Configuration.php(303): Dotpay\Model\Configuration->setPin('uuuuuu')
#1 /var/www/html/vendor/dotpay/magento2-payment/Block/Adminhtml/System/Config/Html/Information.php(85): Dotpay\Model\Configuration::createFromData(Object(Dotpay\Payment\Helper\Data\Configuration))
#2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Dotpay\Payment\Block\Adminhtml\System\Config\Html\Information->__construct(Object(Magento\Backend\Block\Template\Context), Object(Dotpay\Payment\Helper\Module), Object(Dotpay\Payment\Helper\Data\Configuration), Array)
#3 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Dotpay\Payment\...', Array)
#4 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Dotpay\Payment\...', Array)
#5 /var/www/html/vendor/magento/framework/View/Element/BlockFactory.php(45): Magento\Framework\ObjectManager\ObjectManager->create('Dotpay\Payment\...', Array)
#6 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(269): Magento\Framework\View\Element\BlockFactory->createBlock('Dotpay\Payment\...', Array)
#7 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(249): Magento\Framework\View\Layout\Generator\Block->getBlockInstance('Dotpay\Payment\...', Array)
#8 /var/www/html/vendor/magento/framework/View/Layout.php(776): Magento\Framework\View\Layout\Generator\Block->createBlock('Dotpay\Payment\...', 'adminhtml\syste...', Array)
#9 /var/www/html/vendor/magento/framework/View/Layout.php(759): Magento\Framework\View\Layout->_createBlock('Dotpay\Payment\...', 'adminhtml\syste...', Array)
#10 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(349): Magento\Framework\View\Layout->createBlock('Dotpay\Payment\...', 'adminhtml\syste...', Array)
#11 /var/www/html/vendor/magento/framework/View/Layout.php(989): Magento\Framework\View\Layout\Interceptor->createBlock('Dotpay\Payment\...')
#12 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(518): Magento\Framework\View\Layout->getBlockSingleton('Dotpay\Payment\...')
#13 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(234): Magento\Framework\View\Layout\Interceptor->getBlockSingleton('Dotpay\Payment\...')
#14 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(311): Magento\Config\Block\System\Config\Form->_initGroup(Object(Magento\Config\Model\Config\Structure\Element\Group\Proxy), Object(Magento\Config\Model\Config\Structure\Element\Section), Object(Magento\Framework\Data\Form\Element\Fieldset))
#15 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(265): Magento\Config\Block\System\Config\Form->initFields(Object(Magento\Framework\Data\Form\Element\Fieldset), Object(Magento\Config\Model\Config\Structure\Element\Group\Proxy), Object(Magento\Config\Model\Config\Structure\Element\Section))
#16 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(311): Magento\Config\Block\System\Config\Form->_initGroup(Object(Magento\Config\Model\Config\Structure\Element\Group\Proxy), Object(Magento\Config\Model\Config\Structure\Element\Section), Object(Magento\Framework\Data\Form\Element\Fieldset))
#17 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(265): Magento\Config\Block\System\Config\Form->initFields(Object(Magento\Framework\Data\Form\Element\Fieldset), Object(Magento\Config\Model\Config\Structure\Element\Group\Proxy), Object(Magento\Config\Model\Config\Structure\Element\Section))
#18 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(311): Magento\Config\Block\System\Config\Form->_initGroup(Object(Magento\Config\Model\Config\Structure\Element\Group\Proxy), Object(Magento\Config\Model\Config\Structure\Element\Section), Object(Magento\Framework\Data\Form\Element\Fieldset))
#19 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(265): Magento\Config\Block\System\Config\Form->initFields(Object(Magento\Framework\Data\Form\Element\Fieldset), Object(Magento\Config\Model\Config\Structure\Element\Group\Interceptor), Object(Magento\Config\Model\Config\Structure\Element\Section))
#20 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(211): Magento\Config\Block\System\Config\Form->_initGroup(Object(Magento\Config\Model\Config\Structure\Element\Group\Interceptor), Object(Magento\Config\Model\Config\Structure\Element\Section), Object(Magento\Framework\Data\Form))
#21 /var/www/html/vendor/magento/module-config/Block/System/Config/Form.php(548): Magento\Config\Block\System\Config\Form->initForm()
#22 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(666): Magento\Config\Block\System\Config\Form->_beforeToHtml()
#23 /var/www/html/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Element\AbstractBlock->toHtml()
#24 /var/www/html/vendor/magento/framework/View/Layout.php(533): Magento\Framework\View\Layout->_renderBlock('system\config\f...')
#25 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('system\config\f...')
#26 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('system\config\f...')
#27 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('system\config\f...', true)
#28 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(507): Magento\Framework\View\Layout\Interceptor->renderElement('system\config\f...', true)
#29 /var/www/html/generated/code/Magento/Config/Block/System/Config/Edit/Interceptor.php(479): Magento\Framework\View\Element\AbstractBlock->getChildHtml('form', true)
#30 /var/www/html/vendor/magento/module-config/view/adminhtml/templates/system/config/edit.phtml(22): Magento\Config\Block\System\Config\Edit\Interceptor->getChildHtml('form')
#31 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/html/v...')
#32 /var/www/html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Config\Block\System\Config\Edit\Interceptor), '/var/www/html/v...', Array)
#33 /var/www/html/generated/code/Magento/Config/Block/System/Config/Edit/Interceptor.php(245): Magento\Framework\View\Element\Template->fetchView('/var/www/html/v...')
#34 /var/www/html/vendor/magento/framework/View/Element/Template.php(300): Magento\Config\Block\System\Config\Edit\Interceptor->fetchView('/var/www/html/v...')
#35 /var/www/html/vendor/magento/module-backend/Block/Template.php(126): Magento\Framework\View\Element\Template->_toHtml()
#36 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Backend\Block\Template->_toHtml()
#37 /var/www/html/generated/code/Magento/Config/Block/System/Config/Edit/Interceptor.php(570): Magento\Framework\View\Element\AbstractBlock->toHtml()
#38 /var/www/html/vendor/magento/framework/View/Layout.php(557): Magento\Config\Block\System\Config\Edit\Interceptor->toHtml()
#39 /var/www/html/vendor/magento/framework/View/Layout.php(533): Magento\Framework\View\Layout->_renderBlock('system.config.e...')
#40 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('system.config.e...')
#41 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('system.config.e...')
#42 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('system.config.e...', false)
#43 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('system.config.e...', false)
#44 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('content', false)
#45 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('content')
#46 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content')
#47 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('content', false)
#48 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('content', false)
#49 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('admin.scope.col...', false)
#50 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('admin.scope.col...')
#51 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('admin.scope.col...')
#52 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('admin.scope.col...', false)
#53 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('admin.scope.col...', false)
#54 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('main.col', false)
#55 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main.col')
#56 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.col')
#57 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main.col', false)
#58 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('main.col', false)
#59 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('page.main.conta...', false)
#60 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.main.conta...')
#61 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.main.conta...')
#62 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.main.conta...', false)
#63 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('page.main.conta...', false)
#64 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('page.content', false)
#65 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.content')
#66 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.content')
#67 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.content', false)
#68 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('page.content', false)
#69 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('page.wrapper', false)
#70 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#71 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper')
#72 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', false)
#73 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper', false)
#74 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('backend.page', false)
#75 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('backend.page')
#76 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('backend.page')
#77 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('backend.page', false)
#78 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('backend.page', false)
#79 /var/www/html/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('root', false)
#80 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root')
#81 /var/www/html/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root')
#82 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true)
#83 /var/www/html/vendor/magento/framework/View/Layout.php(954): Magento\Framework\View\Layout\Interceptor->renderElement('root')
#84 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(492): Magento\Framework\View\Layout->getOutput()
#85 /var/www/html/vendor/magento/framework/View/Result/Page.php(257): Magento\Framework\View\Layout\Interceptor->getOutput()
#86 /var/www/html/vendor/magento/framework/View/Result/Layout.php(170): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#87 /var/www/html/generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(193): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#88 /var/www/html/vendor/magento/framework/App/Http.php(139): Magento\Backend\Model\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#89 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#90 /var/www/html/vendor/magento/framework/App/Bootstrap.php(257): Magento\Framework\App\Http\Interceptor->launch()
#91 /var/www/html/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#92 {main}`

Wystąpił błąd z API Dotpay. Szczegóły: Kwota minimalna

Po ustawieniu reguły cenowej koszyka z kuponem rabatowym, dającym rabat 100%. pojawia się następujący błąd. Opcja "Zamówienie z zerową podsumą" jest włączona.

1 exception(s):
Exception #0 (Dotpay\Exception\Resource\ApiException): Dotpay\Exception\Resource\ApiException: Wystąpił błąd z API Dotpay. Szczegóły: Kwota minimalna: 0.0100, kwota 0

Phone numbers with state codes form USA not accepted

When trying to proceed payment with shipping adress from USA, with phone number with us format (+1 (xxx) xxx -xxxx) i'm getting error like this:

1 exception(s):
Exception #0 (Dotpay\Exception\BadParameter\PhoneException): Dotpay\Exception\BadParameter\PhoneException: Incorrect phone number: +1 (xxx) xxx-xxxx

Exception #0 (Dotpay\Exception\BadParameter\PhoneException): Dotpay\Exception\BadParameter\PhoneException: Incorrect phone number: +1 (809) 704-1583

#1 Dotpay\Payment\Model\Factory\AbstractFactory->getCustomer() called at [vendor/dotpay/magento2-payment/Model/Factory/AbstractFactory.php:434]
#2 Dotpay\Payment\Model\Factory\AbstractFactory->getTransaction() called at [vendor/dotpay/magento2-payment/Model/Factory/WidgetFactory.php:38]
#3 Dotpay\Payment\Model\Factory\WidgetFactory->getChannel() called at [vendor/dotpay/magento2-payment/Controller/Payment/Preparing.php:85]
#4 Dotpay\Payment\Controller\Payment\Preparing->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#5 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#6 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php:51]
#7 Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#8 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#9 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->___callPlugins() called at [generated/code/Dotpay/Payment/Controller/Payment/Preparing/Interceptor.php:23]
#10 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#11 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#12 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#13 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#14 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->___callPlugins() called at [generated/code/Dotpay/Payment/Controller/Payment/Preparing/Interceptor.php:32]
#15 Dotpay\Payment\Controller\Payment\Preparing\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:186]
#16 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:118]
#17 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#18 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#19 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#20 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#21 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:75]
#22 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#23 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#24 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#25 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#26 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#27 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]
#28 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:40]

Dotpay\Exception\BadParameter for currency and language

\Dotpay\Resource\Channel\Request

This class throws exception like

Dotpay\Exception\BadParameter\LanguageException: Incorrect language: nl

or

Incorrect currency:

Even when the module is disabled. In our case this happened for Nederlands and Serbia
I looks like the module does not check if a certain feature is active when retreiving the config

payment/dotpay_main/active,0
payment/dotpay_oc/active,0
payment/dotpay_cc/active,0
\Dotpay\Payment\Model\Ui\AbstractConfigProvider::getConfig
and here
\Dotpay\Payment\Model\Ui\AbstractConfigProvider::getAgreements
It always builds and send a request

None of exceptions from \Dotpay\Resource\Channel\Request should happen and no requests to Dotpay server should be sent if the module is disabled under a store or globally.

On timeline view we can see that module performs curl request even when disabled, that cost our CPU additional 450ms.

Selection_580

Please fix both issues.

WORKAROUND:
Patch methods, and add a fallback to accepted values instead of throwing an exception

        if (!Language::validate($language)) {
            //throw new LanguageException($language);
            //fallback to english
            $language = (string) 'en';
        }

Fatal error dla zamówień bez adresu wysyłki

Dla zamówień bez adresu wysyłki (downloadable products) moduł rzuca fatal errorem. Problem jest w Helper\Data\Customer w metodzie getPhone. Czy możemy tutaj dodać weryfikację czy zamówienie posiada adres wysyłki?

dotpay module not working

Po zainstalowaniu modułu dotpay nie można na stronie sklepu przejść do kasy .
Sprawdziłem na czystej instalacji magento bez żadnego innego modułu.
Czy będzie dostępna aktualizacja usuwająca ten problem ?

validateAgreements not working

At validateAgreements in dotpay-abstract-method.js abstractComponent.methodName is always undefined. You can go to dotpay website without accepting agreements. It happens if you reload the page.

Fatal error PHP 7.0

Magento 2.2.6

Fatal error: Interface 'Magento\Framework\App\CsrfAwareActionInterface' not found in /public_html/vendor/dotpay/magento2-payment/Controller/Payment/Diagnostics.php on line 34

Niezgodność z PHP 7.0
public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.