How To Send 6-digit verification code in Verify API using PHP How To Send 6-digit verification code in Verify API using PHP

How To Send 6-digit verification code in Verify API using PHP

Yati Rodiati

Objective

Sending 6-digit verification code using PHP.

 

Applies To

  • Verify API
  • PHP Client SDK

Procedure

The PIN length can be set in a Verification object before starting the verification process. Below is the sample code:
 

$request = new \Vonage\Verify\Request(NUMBER, BRAND_NAME);
$request->setCodeLength(6);
$response = $client->verify()->start($request);

 

Additional Information

For more information on sending verification code by Verify API, please see this.