Skip to content

Instantly share code, notes, and snippets.

@darilldrems
Created July 21, 2016 16:55
Show Gist options
  • Save darilldrems/4fa0534b2aa8242710a20182782e3436 to your computer and use it in GitHub Desktop.
Save darilldrems/4fa0534b2aa8242710a20182782e3436 to your computer and use it in GitHub Desktop.
<?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