Developer Discussions

Ask a Question
Back to All

403 Forbidden

I'm using magento 2.4 then I got this error:

{"0":"Client error: POST https:\/\/pg-sandbox.paymaya.com\/checkout\/v1\/checkouts resulted in a 403 Forbidden response:
\n\r\n403 Forbidden</title></head>\r\n\r\n403 Forbidden</h1></center>\r\n</body>\r\n</html>\r\n\n","1":"#1 GuzzleHttp\Middleware::GuzzleHttp\{closure}() called at [vendor/guzzlehttp/promises/src/Promise.php:204] \n#2 GuzzleHttp\Promise\Promise::callHandler() called at [vendor/guzzlehttp/promises/src/Promise.php:153]\n#3 GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() called at [vendor/guzzlehttp/promises/src/TaskQueue.php:48] \n#4 GuzzleHttp\Promise\TaskQueue->run() called at [vendor/guzzlehttp/promises/src/Promise.php:248] \n#5 GuzzleHttp\Promise\Promise->invokeWaitFn() called at [vendor/guzzlehttp/promises/src/Promise.php:224] \n#6 GuzzleHttp\Promise\Promise->waitIfPending() called at [vendor/guzzlehttp/promises/src/Promise.php:269] \n#7 GuzzleHttp\Promise\Promise->invokeWaitList() called at [vendor/guzzlehttp/promises/src/Promise.php:226] \n#8 GuzzleHttp\Promise\Promise->waitIfPending() called at [vendor/guzzlehttp/promises/src/Promise.php:62] \n#9 GuzzleHttp\Promise\Promise->wait() called at [vendor/guzzlehttp/guzzle/src/Client.php:182] \n#10 GuzzleHttp\Client->request() called at [vendor/guzzlehttp/guzzle/src/Client.php:95] \n#11 GuzzleHttp\Client->call() called at [vendor/paymaya_philippines/paymaya-payment/Api/PayMayaClient.php:82] \n#12 PayMaya\Payment\Api\PayMayaClient->createCheckout() called at [vendor/paymaya_philippines/paymaya-payment/Controller/Checkout/Index.php:27] \n#13 PayMaya\Payment\Controller\Checkout\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58] \n#14 PayMaya\Payment\Controller\Checkout\Index\Interceptor->_callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
\n#15 PayMaya\Payment\Controller\Checkout\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
\n#16 PayMaya\Payment\Controller\Checkout\Index\Interceptor->callPlugins() called at [generated/code/PayMaya/Payment/Controller/Checkout/Index/Interceptor.php:23]
\n#17 PayMaya\Payment\Controller\Checkout\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
\n#18 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
\n#19 PayMaya\Payment\Controller\Checkout\Index\Interceptor->
callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
\n#20 PayMaya\Payment\Controller\Checkout\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
\n#21 PayMaya\Payment\Controller\Checkout\Index\Interceptor->callPlugins() called at [generated/code/PayMaya/Payment/Controller/Checkout/Index/Interceptor.php:32]
\n#22 PayMaya\Payment\Controller\Checkout\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
\n#23 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
\n#24 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:147]
\n#25 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
\n#26 Magento\Framework\App\FrontController\Interceptor->
callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
\n#27 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
\n#28 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
\n#29 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:71]
\n#30 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
\n#31 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
\n#32 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
\n#33 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
\n#34 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
\n#35 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
\n#36 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]\n","url":"/paymaya/checkout/index","script_name":"/pub/index.php","report_id":"fe0874e871584c49867ee79aa4faffe4dc92b1a72e6178c869a037c4b937d4ab"}