関数
PollingCron::updateAllOrders()
Loops through all Amazon Pay orders and updates transaction states accordingly
戻り値 戻り値
ファイル: src/Admin/PollingCron.php
public function updateAllOrders() { $orderIds = $this->getAllAmazonPayOrders(); foreach ($orderIds as $oa) { $orderId = (int)$oa['order_id']; $ometa = new Models\OrderMeta($orderId); // order state is updated automatically by these API calls if ($ometa->getChargeId() !== null) { $chargeState = $ometa->getChargeState(); if (!$chargeState->isCanceled() && !$chargeState->isCaptured()) { (new API\Charge\Get($this->module, $ometa))->get($ometa->getChargeId()); } } if ($ometa->getRefundId() !== null) { (new API\Refund\Get($this->module, $ometa))->get($ometa->getRefundId()); } } }