|
@@ 116-121 (lines=6) @@
|
| 113 |
|
$flowResult = $this->validatePurchaseFlow($Order); |
| 114 |
|
$this->entityManager->flush(); |
| 115 |
|
|
| 116 |
|
if ($flowResult->hasWarning() || $flowResult->hasError()) { |
| 117 |
|
log_info('[注文手続] WarningもしくはErrorが発生したためカート画面へ遷移します.', |
| 118 |
|
[$flowResult->getWarning(), $flowResult->getErrors()]); |
| 119 |
|
|
| 120 |
|
return $this->redirectToRoute('cart'); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
$form = $this->createForm(OrderType::class, $Order); |
| 124 |
|
|
|
@@ 176-181 (lines=6) @@
|
| 173 |
|
$flowResult = $this->validatePurchaseFlow($Order); |
| 174 |
|
$this->entityManager->flush(); |
| 175 |
|
|
| 176 |
|
if ($flowResult->hasWarning() || $flowResult->hasError()) { |
| 177 |
|
log_info('[リダイレクト] WarningもしくはErrorが発生したためカート画面へ遷移します.', |
| 178 |
|
[$flowResult->getWarning(), $flowResult->getErrors()]); |
| 179 |
|
|
| 180 |
|
return $this->redirectToRoute('shopping_error'); |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
$redirectTo = $form['redirect_to']->getData(); |
| 184 |
|
if (empty($redirectTo)) { |
|
@@ 253-258 (lines=6) @@
|
| 250 |
|
$flowResult = $this->validatePurchaseFlow($Order); |
| 251 |
|
$this->entityManager->flush(); |
| 252 |
|
|
| 253 |
|
if ($flowResult->hasWarning() || $flowResult->hasError()) { |
| 254 |
|
log_info('[注文確認] WarningもしくはErrorが発生したためカート画面へ遷移します.', |
| 255 |
|
[$flowResult->getWarning(), $flowResult->getErrors()]); |
| 256 |
|
|
| 257 |
|
return $this->redirectToRoute('shopping_error'); |
| 258 |
|
} |
| 259 |
|
|
| 260 |
|
log_info('[注文確認] PaymentMethod::verifyを実行します.', [$Order->getPayment()->getMethodClass()]); |
| 261 |
|
$paymentMethod = $this->createPaymentMethod($Order, $form); |
|
@@ 348-353 (lines=6) @@
|
| 345 |
|
$flowResult = $this->validatePurchaseFlow($Order); |
| 346 |
|
$this->entityManager->flush(); |
| 347 |
|
|
| 348 |
|
if ($flowResult->hasWarning() || $flowResult->hasError()) { |
| 349 |
|
log_info('[注文処理] WarningもしくはErrorが発生したためカート画面へ遷移します.', |
| 350 |
|
[$flowResult->getWarning(), $flowResult->getErrors()]); |
| 351 |
|
|
| 352 |
|
return $this->redirectToRoute('shopping_error'); |
| 353 |
|
} |
| 354 |
|
|
| 355 |
|
log_info('[注文処理] PaymentMethodを取得します.', [$Order->getPayment()->getMethodClass()]); |
| 356 |
|
$paymentMethod = $this->createPaymentMethod($Order, $form); |