Skip to content
Code-Schnipsel Gruppen Projekte
Commit bea830a9 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

docs: PHPDoc and @todo's

Übergeordneter 7a5b0d4c
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
...@@ -235,6 +235,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -235,6 +235,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
* *
* @throws AmazonPayException * @throws AmazonPayException
* @throws QUI\ERP\Exception * @throws QUI\ERP\Exception
* @throws QUI\Exception
*/ */
public function authorizePayment($orderReferenceId, AbstractOrder $Order) public function authorizePayment($orderReferenceId, AbstractOrder $Order)
{ {
...@@ -413,6 +414,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -413,6 +414,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
break; break;
default: default:
// @todo Order ggf. pending
$reason = $status['ReasonCode']; $reason = $status['ReasonCode'];
$Order->addHistory( $Order->addHistory(
...@@ -429,8 +431,10 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -429,8 +431,10 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
* *
* @param AbstractOrder $Order * @param AbstractOrder $Order
* @return void * @return void
*
* @throws AmazonPayException * @throws AmazonPayException
* @throws QUI\ERP\Exception * @throws QUI\ERP\Exception
* @throws QUI\Exception
*/ */
public function capturePayment(AbstractOrder $Order) public function capturePayment(AbstractOrder $Order)
{ {
...@@ -524,6 +528,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -524,6 +528,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$Order->update(QUI::getUsers()->getSystemUser()); $Order->update(QUI::getUsers()->getSystemUser());
break; break;
// @todo pending status
default: default:
$reason = $status['ReasonCode']; $reason = $status['ReasonCode'];
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren