eduardoconekta
5/16/2017 - 10:44 PM

old-exception handling php

try {
  $order = \Conekta\Order::create($validOrder);
} catch (\Conekta\ErrorList $errorList){
  foreach($errorList->details as &$errorDetail) {
    echo $errorDetail->getMessage();
  }
}