diff --git a/Model/PaymentInformationManagement.php b/Model/PaymentInformationManagement.php index b8d44b7..b927112 100755 --- a/Model/PaymentInformationManagement.php +++ b/Model/PaymentInformationManagement.php @@ -54,7 +54,11 @@ public function __construct( public function patchPayment($cartId) { $quote = $this->quoteManagement->getActive($cartId); - return $this->payPalPlusApiFactory->create()->patchPayment($quote); + $result = $this->payPalPlusApiFactory->create()->patchPayment($quote); + if ($result === false) { + throw new \Exception('Could not patch payment for quote'); + } + return $result; } public function handleComment($paymentMethod)