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.
Articles in this section
- What is the Verify Anti-Fraud System?
- Error 15 on Verify API Request
- Can I use Verify API with any number in the world?
- Understanding the error code 409 when creating a Fragment for Custom Template in Verify API V2.
- What are the charges for using Verify API V2?
- Where do I find the Verify API Voice Call Logs?
- How fast can I send Verify API requests?
- Can I provide my own PIN/Code numbers in Verify API v2?
- How do I find the Vonage Verify API Request IDs?
- Error 20 on Verify API v1 Request