We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f09aa commit fc73d7bCopy full SHA for fc73d7b
CHANGELOG.md
@@ -2,6 +2,10 @@
2
3
All notable changes to `sms` will be documented in this file
4
5
+## 2.1.4
6
+
7
+- Fixed `USMS-GH` driver returning balance as a string with currency symbol.
8
9
## 2.1.3
10
11
- Registered the name `sms` for the `SmsChannel` to be used in the `via()` method.
src/Drivers/UsmsGh.php
@@ -21,7 +21,7 @@ public function balance(): null|int
21
dd($response->object());
22
}
23
24
- return $response->json('data.remaining_unit');
+ return filter_var($response->json('data.remaining_balance'), FILTER_SANITIZE_NUMBER_INT);
25
26
27
public function send(array $recipients, string $message, array $mergeData = []): ?array
0 commit comments