btcpayserver / magento2-plugin

4 stars 5 forks source link

Error on return to shop #11

Closed skeutmeier closed 1 year ago

skeutmeier commented 2 years ago

After successful payment, user is redirected to magento 2 but gets an exception:

{"0":"URI is not valid and cannot be converted into a string","1":"#1 Laminas\Http\Header\AbstractLocation->getUri() called at [vendor\/laminas\/laminas-http\/src\/Header\/AbstractLocation.php:138]\n#2 Laminas\Http\Header\AbstractLocation->toString() called at [vendor\/laminas\/laminas-http\/src\/PhpEnvironment\/Response.php:110]\n#3 Laminas\Http\PhpEnvironment\Response->sendHeaders() called at [generated\/code\/Magento\/Framework\/App\/Response\/Http\/Interceptor.php:230]\n#4 Magento\Framework\App\Response\Http\Interceptor->sendHeaders() called at [vendor\/laminas\/laminas-http\/src\/PhpEnvironment\/Response.php:140]\n#5 Laminas\Http\PhpEnvironment\Response->send() called at [generated\/code\/Magento\/Framework\/App\/Response\/Http\/Interceptor.php:248]\n#6 Magento\Framework\App\Response\Http\Interceptor->send() called at [vendor\/magento\/framework\/HTTP\/PhpEnvironment\/Response.php:45]\n#7 Magento\Framework\HTTP\PhpEnvironment\Response->sendResponse() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#8 Magento\Framework\App\Response\Http\Interceptor->callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#9 Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#10 Magento\Framework\App\Response\Http\Interceptor->callPlugins() called at [generated\/code\/Magento\/Framework\/App\/Response\/Http\/Interceptor.php:86]\n#11 Magento\Framework\App\Response\Http\Interceptor->sendResponse() called at [vendor\/magento\/framework\/App\/Bootstrap.php:265]\n#12 Magento\Framework\App\Bootstrap->run() called at [pub\/index.php:30]\n","url":"\/btcpay\/redirect\/returnafterpayment\/orderId\/6\/invoiceId\/SA7H3EWzfq1Rcagi5fiNgA\/hash\/f2f0842735e5ed670dd60acca5d89b53086522f6\/","script_name":"\/index.php","report_id":"3261b7b0c42041e54d0c9777aa36933436d48a46765843b3c32a5e8730cd9b6c"}