|
@@ 270-279 (lines=10) @@
|
| 267 |
|
$PaymentResult = $paymentMethod->verify(); |
| 268 |
|
|
| 269 |
|
if ($PaymentResult) { |
| 270 |
|
if (!$PaymentResult->isSuccess()) { |
| 271 |
|
$this->entityManager->rollback(); |
| 272 |
|
foreach ($PaymentResult->getErrors() as $error) { |
| 273 |
|
$this->addError($error); |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
log_info('[注文確認] PaymentMethod::verifyのエラーのため, 注文手続き画面へ遷移します.', [$PaymentResult->getErrors()]); |
| 277 |
|
|
| 278 |
|
return $this->redirectToRoute('shopping'); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
$response = $PaymentResult->getResponse(); |
| 282 |
|
if ($response && ($response->isRedirection() || $response->getContent())) { |
|
@@ 773-782 (lines=10) @@
|
| 770 |
|
} |
| 771 |
|
|
| 772 |
|
// エラー時はロールバックして購入エラーとする. |
| 773 |
|
if (!$PaymentResult->isSuccess()) { |
| 774 |
|
$this->entityManager->rollback(); |
| 775 |
|
foreach ($PaymentResult->getErrors() as $error) { |
| 776 |
|
$this->addError($error); |
| 777 |
|
} |
| 778 |
|
|
| 779 |
|
log_info('[注文処理] PaymentMethod::checkoutのエラーのため, 購入エラー画面へ遷移します.', [$PaymentResult->getErrors()]); |
| 780 |
|
|
| 781 |
|
return $this->redirectToRoute('shopping_error'); |
| 782 |
|
} |
| 783 |
|
} |
| 784 |
|
} |
| 785 |
|
|