how to fetch transitionNotAllowed errro message #230
Unanswered
steven-lury
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I get exact errors of canTransitionTo. For example, In InitToPaid Transition, if payment is equal to invoice_amount and paid by paypal , transition is allowed.
public function canTransition()
{
return $this->invoices->isPaidByPapal() && $this->invoice->amount == $response->paid_amount && ...... ;
}
I want to find a solution which conditions doesn't satisfied the canTransition() method and return it in exception
Beta Was this translation helpful? Give feedback.
All reactions