mirror of
https://github.com/Karaka-Management/oms-Shop.git
synced 2026-01-11 10:38:40 +00:00
test fixes
This commit is contained in:
parent
5fe46063f0
commit
19cde5a111
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user