関数
OrderMeta::getTransactionState()
Returns the current transaction state
戻り値 戻り値
ファイル: src/Models/OrderMeta.php
public function getTransactionState() { if (!empty($this->refundId)) { $this->refundState->setChargePermissionId($this->getChargePermissionId()); return $this->refundState; } elseif (!empty($this->chargeId)) { $this->chargeState->setChargePermissionId($this->getChargePermissionId()); return $this->chargeState; } else { $deferred = new DeferredAuthorize\State(DeferredAuthorize\State::DEFERRED_AUTHORIZE); $deferred->setChargePermissionId($this->getChargePermissionId()); return $deferred; } }