Closed simonrjones closed 9 months ago
As has been identified, this has been specifically caused by UK Provider BT from restricting keywords. I'll schedule work in to add a validator class that contains this list.
I'll split this into two. PR coming to fix this, validator will be added later.
Fixed in 4.4.3, thank you for reporting :)
Expected Behavior
Your PHP SDK contains a bug that stops Verify SMS messages being sent. We discovered this while testing our website and since 31 Oct 2023 SMS one time verification codes stopped being sent.
Our code set the brand, but did not set the sender ID. So it used the default sender ID of "VERIFY" which is set in your PHP code.
According to: https://api.support.vonage.com/hc/en-us/articles/10866279173148-United-Kingdom-List-of-Generic-SIDs-Blocked
The sender ID "VERIFY" is blocked in the UK.
Current Behavior
Our code that failed:
This used the default SenderID of VERIFY and this failed to send SMSs.
We added this:
with a SENDER_ID = Studio24 and this fixed it and SMS one time codes delivered successfully.
Possible Solution
To fix this in your code:
https://github.com/Vonage/vonage-php-sdk-core/blob/main/src/Verify/Request.php
Change line 41 to:
Or change the code to require that a custom Sender ID is set via
setSenderId()
for all verify requests.You may also want to update documentation to reflect this.