diff --git a/src/QUI/ERP/Payments/Amazon/Payment.php b/src/QUI/ERP/Payments/Amazon/Payment.php index eb0293b9adbe72cd855d97e804b4484cd07de003..ccd0fc2d92c9cee9acc05ef7b749864700ad6873 100644 --- a/src/QUI/ERP/Payments/Amazon/Payment.php +++ b/src/QUI/ERP/Payments/Amazon/Payment.php @@ -235,6 +235,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment * * @throws AmazonPayException * @throws QUI\ERP\Exception + * @throws QUI\Exception */ public function authorizePayment($orderReferenceId, AbstractOrder $Order) { @@ -413,6 +414,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment break; default: + // @todo Order ggf. pending $reason = $status['ReasonCode']; $Order->addHistory( @@ -429,8 +431,10 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment * * @param AbstractOrder $Order * @return void + * * @throws AmazonPayException * @throws QUI\ERP\Exception + * @throws QUI\Exception */ public function capturePayment(AbstractOrder $Order) { @@ -524,6 +528,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment $Order->update(QUI::getUsers()->getSystemUser()); break; + // @todo pending status + default: $reason = $status['ReasonCode'];