Discussions

Ask a Question
Back to all

"Forbidden" error using sandbox mode in Magento

Hello.

We are using Satispay module (version 2.2.2) for Magento 2 (version 2.4.6-p8).

We want to test payments on our staging and UAT instance. Payments mode production are obviously not working with staging mobile app (getting error trying to scan QR code).
With sandbox mode enabled the error is thrown:

1 exception(s):
Exception #0 (Exception): Forbidden, request id: x5FOVWkO

Exception #0 (Exception): Forbidden, request id: x5FOVWkO
<pre>#1 SatispayGBusiness\Request::post() called at [vendor/satispay/gbusiness-api-php-sdk/lib/Payment.php:14]
#2 SatispayGBusiness\Payment::create() called at [vendor/satispay/magento2-plugin/Controller/Payment/Index.php:32]
#3 Satispay\Satispay\Controller\Payment\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#4 Satispay\Satispay\Controller\Payment\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#5 Satispay\Satispay\Controller\Payment\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#6 Satispay\Satispay\Controller\Payment\Index\Interceptor->___callPlugins() called at [generated/code/Satispay/Satispay/Controller/Payment/Index/Interceptor.php:23]
#7 Satispay\Satispay\Controller\Payment\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#8 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#9 Satispay\Satispay\Controller\Payment\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#10 Satispay\Satispay\Controller\Payment\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#11 Satispay\Satispay\Controller\Payment\Index\Interceptor->___callPlugins() called at [generated/code/Satispay/Satispay/Controller/Payment/Index/Interceptor.php:32]
#12 Satispay\Satispay\Controller\Payment\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
#13 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
#14 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:146]
#15 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#16 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#17 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#18 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#19 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:71]
#20 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#21 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#22 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#23 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#24 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#25 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]
</pre>

We have already done "Configure with a Sandbox Activation Code" procedure (used activation code provided by Satispay support when we applied for sandbox account via https://satispay-sandbox.paperform.co/).

Our staging and UAT instances are available only using company network or VPN. Additionally, staging has a basic auth set up.

Have we missed something during sandbox account creation (e.g. whitelist satispay our our staging and UAT or provide our development environments to satispay)?

Thank you.


P. S. On production satispay is working.