Skip to content

Commit

Permalink
Added OurSMS version 2 OTP provider
Browse files Browse the repository at this point in the history
  • Loading branch information
HasanAlyazidi committed Dec 12, 2022
1 parent 6fab4e4 commit bdad183
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/OTP/Providers/OurSMSV2OtpProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace HasanAlyazidi\Sendables\OTP\Providers;

use HasanAlyazidi\Sendables\SMS\Providers\ISMSProvider;
use HasanAlyazidi\Sendables\SMS\Providers\OurSMSV2Provider;

class OurSMSV2OtpProvider extends SystemOtpProvider
{
public function smsProvider(string $message) : ISMSProvider
{
return new OurSMSV2Provider($message, $this->mobile);
}
}
2 changes: 0 additions & 2 deletions src/SMS/Providers/OurSMSV2Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ protected function sendSMS(string $mobileNumbers)
'&prevDups=' . $this->getPrevDups().
'&msgClass=' . $this->getMsgClass();

\Log::alert("url: $url");

try {
$client = new GuzzleHttp\Client();
$request = $client->get($url);
Expand Down

0 comments on commit bdad183

Please sign in to comment.