Update WhatsappHelper.php
This commit is contained in:
@@ -233,8 +233,6 @@ class WhatsappHelper
|
||||
];
|
||||
}
|
||||
|
||||
dd(env('WABLAS_HOST'), env('WABLAS_TOKEN'), $data);
|
||||
|
||||
try {
|
||||
// Send the request to the WABLAS API
|
||||
$response = $client->post(env('WABLAS_HOST') . '/api/v2/send-message', [
|
||||
@@ -248,11 +246,8 @@ class WhatsappHelper
|
||||
'verify' => false,
|
||||
]);
|
||||
|
||||
dd($response->getBody()->getContents());
|
||||
|
||||
return $response->getBody()->getContents();
|
||||
} catch (\Exception $e) {
|
||||
dd($e->getMessage());
|
||||
AuditTrailHelper::AddAuditTrail('Error', 'Failed to send WhatsApp message at Form (' . $expense_number . ')');
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user