cancel
Showing results for 
Search instead for 
Did you mean: 

The requested Payment Method is not available.

The requested Payment Method is not available.

Hello, i have a multi store containing 2 Stores

In one store that sells virtual goods(which has no price) i cant order ANY of the products

Atm the payment Purchase Order is enabled;

Someone can help me?

errororder.PNGerrororder2.PNGError in Console LogError in Console Log

Edit: This only happens when buying Virtual Products or Digital Products

16 REPLIES 16

Re: The requested Payment Method is not available.

Hi @eCom_Microware 

 

Very interesting question. Thank you for posting it.

It seems like you are having an issue with the custom payment method implementation. It could happen when the shipping address (or getShippingAddress) is NULL as an order is virtual.

 

By any chance could you share an exception.log and system.log files to get a better idea where exactly it can be an error.

 

Thank you.

Re: The requested Payment Method is not available.

Hello, Max @Pronko 

Thanks for your repply. 

This is my system.log, the exepction log is totally clean when i do this purchase

 

[2019-02-04 16:33:02] main.INFO: Cron Job catalog_product_outdated_price_values_cleanup is run [] []
[2019-02-04 16:33:02] main.INFO: Cron Job catalog_product_outdated_price_values_cleanup is successfully finished. Statistics: {"sum":0.19337296485901,"count":1,"realmem":6291456,"emalloc":7361680,"realmem_start":35651584,"emalloc_start":31658344} [] []
[2019-02-04 16:33:02] main.INFO: Cron Job sales_grid_order_shipment_async_insert is run [] []
[2019-02-04 16:33:02] main.INFO: Cron Job sales_grid_order_shipment_async_insert is successfully finished. Statistics: {"sum":0.00048995018005371,"count":1,"realmem":0,"emalloc":752,"realmem_start":41943040,"emalloc_start":39120632} [] []
[2019-02-04 16:33:02] main.INFO: Cron Job sales_send_order_emails is run [] []
[2019-02-04 16:33:02] main.INFO: Cron Job sales_send_order_emails is successfully finished. Statistics: {"sum":0.00049185752868652,"count":1,"realmem":0,"emalloc":672,"realmem_start":44040192,"emalloc_start":42366344} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_send_order_invoice_emails is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_send_order_invoice_emails is successfully finished. Statistics: {"sum":0.00054001808166504,"count":1,"realmem":0,"emalloc":752,"realmem_start":44040192,"emalloc_start":42729960} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job indexer_reindex_all_invalid is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_send_order_shipment_emails is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_send_order_shipment_emails is successfully finished. Statistics: {"sum":0.00047397613525391,"count":1,"realmem":0,"emalloc":752,"realmem_start":44040192,"emalloc_start":43014120} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job indexer_reindex_all_invalid is successfully finished. Statistics: {"sum":0.033735036849976,"count":1,"realmem":0,"emalloc":756480,"realmem_start":35651584,"emalloc_start":31374352} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_send_order_creditmemo_emails is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_send_order_creditmemo_emails is successfully finished. Statistics: {"sum":0.00047898292541504,"count":1,"realmem":0,"emalloc":752,"realmem_start":44040192,"emalloc_start":43341384} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job indexer_update_all_views is run [] []
[2019-02-04 16:33:03] main.CRITICAL: Class Microware\MW\Block\Button does not exist [] []
[2019-02-04 16:33:03] main.CRITICAL: Invalid block type: Microware\MW\Block\Button [] []
[2019-02-04 16:33:03] main.INFO: Cron Job outdated_authentication_failures_cleanup is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job outdated_authentication_failures_cleanup is successfully finished. Statistics: {"sum":0.00074410438537598,"count":1,"realmem":0,"emalloc":1128,"realmem_start":44040192,"emalloc_start":43369520} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job catalog_product_frontend_actions_flush is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job catalog_product_frontend_actions_flush is successfully finished. Statistics: {"sum":0.0025880336761475,"count":1,"realmem":0,"emalloc":752,"realmem_start":44040192,"emalloc_start":43370408} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job indexer_update_all_views is successfully finished. Statistics: {"sum":0.23066306114197,"count":1,"realmem":2097152,"emalloc":3126664,"realmem_start":35651584,"emalloc_start":32133664} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_grid_order_async_insert is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_grid_order_async_insert is successfully finished. Statistics: {"sum":0.00051999092102051,"count":1,"realmem":0,"emalloc":752,"realmem_start":44040192,"emalloc_start":43379688} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_grid_order_invoice_async_insert is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_grid_order_invoice_async_insert is successfully finished. Statistics: {"sum":0.00051999092102051,"count":1,"realmem":0,"emalloc":752,"realmem_start":44040192,"emalloc_start":43382880} [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_grid_order_creditmemo_async_insert is run [] []
[2019-02-04 16:33:03] main.INFO: Cron Job sales_grid_order_creditmemo_async_insert is successfully finished. Statistics: {"sum":0.00058889389038086,"count":1,"realmem":0,"emalloc":752,"realmem_start":44040192,"emalloc_start":43385752} [] []

 

Re: The requested Payment Method is not available.

Thanks @eCom_Microware for posting system.log

Doesn't seem like we can see any information.

 

Can you have a look at the response of the request where you see 400 error maybe there will be an error?

Also, if you can switch to developer mode to see more information about 400.

Re: The requested Payment Method is not available.

Of course mate @Pronko ,
these are the information you asked before
The response of error 400 is: 
<response>
<message>Consumer is not authorized to access %resources</message>
<parameters>
<resources>self</resources>
</parameters>
</response>
And the information in developer mode is that:
Magento\Framework\Exception\LocalizedException: Invalid XML in file /var/www/html/ecommerce/vendor/sy/slider/etc/events.xml: Element 'event', attribute 'name': [facet 'pattern'] The value 'sy.copyright' is not accepted by the pattern '[a-zA-Z0-9_]+'. Line: 10 Element 'event', attribute 'name': 'sy.copyright' is not a valid value of the atomic type 'eventName'. Line: 10 Element 'event', attribute 'name': Warning: No precomputed value available, the value was either invalid or something strange happend. Line: 10 in /var/www/html/ecommerce/vendor/magento/framework/Config/Reader/Filesystem.php:154 Stack trace: #0 /var/www/html/ecommerce/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator)) #1 /var/www/html/ecommerce/generated/code/Magento/Framework/Event/Config/Reader/Proxy.php(95): Magento\Framework\Config\Reader\Filesystem->read('global') #2 /var/www/html/ecommerce/vendor/magento/framework/Config/Data/Scoped.php(118): Magento\Framework\Event\Config\Reader\Proxy->read('global') #3 /var/www/html/ecommerce/vendor/magento/framework/Config/Data/Scoped.php(96): Magento\Framework\Config\Data\Scoped->_loadScopedData() #4 /var/www/html/ecommerce/vendor/magento/framework/Event/Config.php(37): Magento\Framework\Config\Data\Scoped->get('core_collection...', Array) #5 /var/www/html/ecommerce/vendor/magento/framework/Event/Manager.php(58): Magento\Framework\Event\Config->getObservers('core_collection...') #6 /var/www/html/ecommerce/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('core_collection...', Array) #7 /var/www/html/ecommerce/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php(531): Magento\Framework\Event\Manager\Proxy->dispatch('core_collection...', Array) #8 /var/www/html/ecommerce/vendor/magento/framework/Data/Collection/AbstractDb.php(571): Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection->_beforeLoad() #9 /var/www/html/ecommerce/vendor/magento/framework/Data/Collection/AbstractDb.php(559): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false) #10 /var/www/html/ecommerce/vendor/magento/framework/Data/Collection.php(831): Magento\Framework\Data\Collection\AbstractDb->load() #11 /var/www/html/ecommerce/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(83): Magento\Framework\Data\Collection->getIterator() #12 /var/www/html/ecommerce/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(63): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #13 /var/www/html/ecommerce/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get('') #14 /var/www/html/ecommerce/vendor/magento/module-config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #15 /var/www/html/ecommerce/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #16 /var/www/html/ecommerce/vendor/magento/module-config/App/Config/Type/System.php(292): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #17 /var/www/html/ecommerce/vendor/magento/module-config/App/Config/Type/System.php(191): Magento\Config\App\Config\Type\System->readData() #18 /var/www/html/ecommerce/vendor/magento/module-config/App/Config/Type/System.php(152): Magento\Config\App\Config\Type\System->loadDefaultScopeData('default') #19 /var/www/html/ecommerce/vendor/magento/framework/App/Config.php(131): Magento\Config\App\Config\Type\System->get('default/newreli...') #20 /var/www/html/ecommerce/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config->get('system', 'default/newreli...') #21 /var/www/html/ecommerce/vendor/magento/module-new-relic-reporting/Model/Config.php(91): Magento\Framework\App\Config->getValue('newrelicreporti...') #22 /var/www/html/ecommerce/vendor/magento/module-new-relic-reporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #23 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException(Object(Magento\Framework\App\Http\Interceptor), Object(Magento\Framework\App\Bootstrap), Object(Magento\Framework\Exception\LocalizedException)) #24 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Magento\Framework\Exception\LocalizedException)) #25 /var/www/html/ecommerce/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #26 /var/www/html/ecommerce/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Magento\Framework\Exception\LocalizedException)) #27 /var/www/html/ecommerce/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #28 {main}

Re: The requested Payment Method is not available.

Does the sy/slider module relate to payment integration?

If no, can you try and disable this module and try again?

 

It seems like there is a permission issue with the slider functionality.

Re: The requested Payment Method is not available.

No, the sy/slider is only used in landing page.

For sure, i will disable this module and return in a few minutes

 

 

Re: The requested Payment Method is not available.

Also, can you post event.xml file from the slider module?

Re: The requested Payment Method is not available.

@Pronko 

With SY Slider disabled the return in developer mode is:

2 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Microware\MW\Block\Button
Exception #1 (ReflectionException): Class Microware\MW\Block\Button does not exist

Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Microware\MW\Block\Button
#0 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Generator/Block.php(249): Magento\Framework\View\Layout\Generator\Block->getBlockInstance('Microware\\MW\\Bl...', Array)
#1 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Generator/Block.php(227): Magento\Framework\View\Layout\Generator\Block->createBlock('Microware\\MW\\Bl...', 'mw', Array)
#2 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Generator/Block.php(135): Magento\Framework\View\Layout\Generator\Block->generateBlock(Object(Magento\Framework\View\Layout\ScheduledStructure), Object(Magento\Framework\View\Layout\Data\Structure), 'mw')
#3 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/GeneratorPool.php(80): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#4 /var/www/html/ecommerce/vendor/magento/framework/View/Layout.php(344): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#5 /var/www/html/ecommerce/generated/code/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Framework\View\Layout->generateElements()
#6 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#7 /var/www/html/ecommerce/vendor/magento/framework/View/Page/Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#8 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#9 /var/www/html/ecommerce/vendor/magento/framework/View/Page/Config.php(197): Magento\Framework\View\Layout\Builder->build()
#10 /var/www/html/ecommerce/vendor/magento/framework/View/Page/Config.php(217): Magento\Framework\View\Page\Config->build()
#11 /var/www/html/ecommerce/vendor/magento/module-checkout/Controller/Index/Index.php(39): Magento\Framework\View\Page\Config->getTitle()
#12 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Controller\Index\Index->execute()
#13 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Controller\Index\Index\Interceptor->___callParent('execute', Array)
#14 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}()
#15 /var/www/html/ecommerce/generated/code/Magento/Checkout/Controller/Index/Index/Interceptor.php(26): Magento\Checkout\Controller\Index\Index\Interceptor->___callPlugins('execute', Array, Array)
#16 /var/www/html/ecommerce/vendor/magento/framework/App/Action/Action.php(107): Magento\Checkout\Controller\Index\Index\Interceptor->execute()
#17 /var/www/html/ecommerce/vendor/magento/module-checkout/Controller/Onepage.php(161): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#18 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Controller\Onepage->dispatch(Object(Magento\Framework\App\Request\Http))
#19 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Controller\Index\Index\Interceptor->___callParent('dispatch', Array)
#20 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#21 /var/www/html/ecommerce/generated/code/Magento/Checkout/Controller/Index/Index/Interceptor.php(39): Magento\Checkout\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#22 /var/www/html/ecommerce/vendor/magento/framework/App/FrontController.php(55): Magento\Checkout\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#23 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#25 /var/www/html/ecommerce/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#26 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#27 /var/www/html/ecommerce/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#28 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#30 /var/www/html/ecommerce/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#31 /var/www/html/ecommerce/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#32 /var/www/html/ecommerce/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#33 /var/www/html/ecommerce/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#34 /var/www/html/ecommerce/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#35 {main}

Exception #1 (ReflectionException): Class Microware\MW\Block\Button does not exist
#0 /var/www/html/ecommerce/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Microware\\MW\\Bl...')
#1 /var/www/html/ecommerce/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Microware\\MW\\Bl...')
#2 /var/www/html/ecommerce/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Microware\\MW\\Bl...')
#3 /var/www/html/ecommerce/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Microware\\MW\\Bl...', Array)
#4 /var/www/html/ecommerce/vendor/magento/framework/View/Element/BlockFactory.php(45): Magento\Framework\ObjectManager\ObjectManager->create('Microware\\MW\\Bl...', Array)
#5 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Generator/Block.php(269): Magento\Framework\View\Element\BlockFactory->createBlock('Microware\\MW\\Bl...', Array)
#6 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Generator/Block.php(249): Magento\Framework\View\Layout\Generator\Block->getBlockInstance('Microware\\MW\\Bl...', Array)
#7 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Generator/Block.php(227): Magento\Framework\View\Layout\Generator\Block->createBlock('Microware\\MW\\Bl...', 'mw', Array)
#8 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Generator/Block.php(135): Magento\Framework\View\Layout\Generator\Block->generateBlock(Object(Magento\Framework\View\Layout\ScheduledStructure), Object(Magento\Framework\View\Layout\Data\Structure), 'mw')
#9 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/GeneratorPool.php(80): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#10 /var/www/html/ecommerce/vendor/magento/framework/View/Layout.php(344): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#11 /var/www/html/ecommerce/generated/code/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Framework\View\Layout->generateElements()
#12 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#13 /var/www/html/ecommerce/vendor/magento/framework/View/Page/Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#14 /var/www/html/ecommerce/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#15 /var/www/html/ecommerce/vendor/magento/framework/View/Page/Config.php(197): Magento\Framework\View\Layout\Builder->build()
#16 /var/www/html/ecommerce/vendor/magento/framework/View/Page/Config.php(217): Magento\Framework\View\Page\Config->build()
#17 /var/www/html/ecommerce/vendor/magento/module-checkout/Controller/Index/Index.php(39): Magento\Framework\View\Page\Config->getTitle()
#18 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Controller\Index\Index->execute()
#19 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Controller\Index\Index\Interceptor->___callParent('execute', Array)
#20 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}()
#21 /var/www/html/ecommerce/generated/code/Magento/Checkout/Controller/Index/Index/Interceptor.php(26): Magento\Checkout\Controller\Index\Index\Interceptor->___callPlugins('execute', Array, Array)
#22 /var/www/html/ecommerce/vendor/magento/framework/App/Action/Action.php(107): Magento\Checkout\Controller\Index\Index\Interceptor->execute()
#23 /var/www/html/ecommerce/vendor/magento/module-checkout/Controller/Onepage.php(161): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Controller\Onepage->dispatch(Object(Magento\Framework\App\Request\Http))
#25 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Controller\Index\Index\Interceptor->___callParent('dispatch', Array)
#26 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#27 /var/www/html/ecommerce/generated/code/Magento/Checkout/Controller/Index/Index/Interceptor.php(39): Magento\Checkout\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#28 /var/www/html/ecommerce/vendor/magento/framework/App/FrontController.php(55): Magento\Checkout\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#29 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#30 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#31 /var/www/html/ecommerce/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#32 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#33 /var/www/html/ecommerce/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#34 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#35 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#36 /var/www/html/ecommerce/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#37 /var/www/html/ecommerce/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#38 /var/www/html/ecommerce/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#39 /var/www/html/ecommerce/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#40 /var/www/html/ecommerce/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#41 {main}

The error 400 still the same;

 

The events.xml from the module is that:

<?xml version="1.0"?>
<!--
/**
 * Slider
 * 
 * @author Slava Yurthev
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
	<event name="sy.copyright">
		<observer name="sy.copyright.slider" instance="SY\Slider\Observer\Copyright" />
	</event>
</config>

Re: The requested Payment Method is not available.

I Already disabled this Module of exception above and the 

response of error 400 is

<response>
<message>Consumer is not authorized to access %resources</message>
<parameters>
<resources>self</resources>
</parameters>
<trace>
#0 /var/www/html/ecommerce/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68): Magento\Webapi\Controller\Rest\RequestValidator->checkPermissions() #1 /var/www/html/ecommerce/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(86): Magento\Webapi\Controller\Rest\RequestValidator->validate() #2 /var/www/html/ecommerce/vendor/magento/module-webapi/Controller/Rest.php(322): Magento\Webapi\Controller\Rest\InputParamsResolver->resolve() #3 /var/www/html/ecommerce/vendor/magento/module-webapi/Controller/Rest.php(239): Magento\Webapi\Controller\Rest->processApiRequest() #4 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http)) #5 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent('dispatch', Array) #6 /var/www/html/ecommerce/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #7 /var/www/html/ecommerce/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(39): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins('dispatch', Array, Array) #8 /var/www/html/ecommerce/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #9 /var/www/html/ecommerce/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch() #10 /var/www/html/ecommerce/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch() #11 /var/www/html/ecommerce/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #12 {main}
</trace>
</response>