diff --git a/Admin/Install/Application/Shop/Application.php b/Admin/Install/Application/Shop/Application.php index c226088..fd70158 100755 --- a/Admin/Install/Application/Shop/Application.php +++ b/Admin/Install/Application/Shop/Application.php @@ -136,7 +136,6 @@ final class Application /** @var ConnectionAbstract $con */ $con = $this->app->dbPool->get(); - $con->connect(); DataMapperFactory::db($con); $this->app->cachePool = new CachePool(); diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 193e4ea..4482053 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -296,7 +296,11 @@ final class ApiController extends Controller // @tood: make this configurable (either from the customer payment info or some item default setting)!!! if ($item->getAttribute('subscription')->value->getValue() === 1) { $response->header->status = RequestStatusCode::R_303; - $response->header->set('Location', $item->getAttribute('one_click_pay_cc')->value->getValue(), true); + $response->header->set( + 'Location', + $item->getAttribute('one_click_pay_cc')->value->valueStr ?? '', + true + ); } else { $this->app->moduleManager->get('Payment', 'Api')->setupStripe($request, $response, $bill, $data); }