Created
July 21, 2016 16:55
-
-
Save darilldrems/4fa0534b2aa8242710a20182782e3436 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PayWithCapture\PayWithCaptureClient; | |
//You can find your clientId, $clientSecret in your PayWithCapture DevCenter settings page | |
$clientId = "745474656hdhdgftfyfjfkg"; | |
$clientSecret = "jyrtr64546470od"; | |
$env = "staging"; // $env should be "staging" when in dev mode and in production change to "production" | |
$client = new PayWithCaptureClient($clientId, $clientSecret, $env); | |
$otpClient = $client->getOtpClient(); | |
$phone = "+2349098090424"; | |
//this will help you send sms otp to your users | |
$otpResponse = $otpClient->sendSmsOtp($phone) | |
//this will allow you send voice otp to your users | |
$otpResponse = $otpClient->sendVoiceOtp($phone) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment