merchant-frontend-examples

ZZZ: Inactive/Deprecated
Log | Files | Refs

error.php (364B)


      1 <?php
      2   // This file is in the public domain.
      3 
      4   function build_error($response, $hint, $http_code){
      5     http_response_code($http_code);
      6     return json_encode(array(
      7                        'error' => "internal error",
      8                        'hint' => $hint,
      9                        'detail' => $response["body"]),
     10                        JSON_PRETTY_PRINT);
     11   }
     12 ?>