jamboljack

Cek Invoice

Jan 7th, 2026
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. private function check_invoice_exists_in_mekari($jurnal_id)
  2.     {
  3.         try {
  4.             $response = $this->mekari_jurnal->request(
  5.                 'GET',
  6.                 '/public/jurnal/api/v1/sales_invoices/' . $jurnal_id
  7.             );
  8.            
  9.             return ($response['http_code'] ?? 0) === 200;
  10.            
  11.         } catch (Exception $e) {
  12.             return false;
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment