関数
State::getErrorResponseFromDeclinedState()
Returns GenericError
instance created from a Declined
state.
説明 説明
This method returns an UNKNOWN_ERROR
GenericError
instance if the state is not declined.
ファイル: src/Models/Refund/State.php
public function getErrorResponseFromDeclinedState() { $error = $this->getErrorResponse(self::UNKNOWN_ERROR); if ($this->state !== self::DECLINED) { return $error; } return $this->getErrorResponse($this->reasonCode, [$this->reasonDescription]); }