080, 234 or +234? Validate Data Order Numbers Before Submission
Keep a customer's phone number as an identifier, not a quantity. Before submitting a data order, validate the number and present the final receiving number for confirmation. A spreadsheet or integration that removes a leading zero can turn an otherwise careful order into an unusable request.
Separate input from supplier format
Customers may type a domestic number or an international representation. The format accepted by a particular supplier must come from that supplier's documentation. Do not assume a format supported by an SMS service is also supported by a data-purchase endpoint.
Google's libphonenumber project provides parsing, formatting and validation tools. Such validation helps with number structure; it does not prove that the person owns the number or that the intended network is correct.
Protect the original entry
Retain the customer's submitted value privately alongside the validated form used for the order. If staff need to correct a mistake, they should be able to explain the change rather than silently editing digits.
Set phone-number columns to text before entering or importing records. Check a small sample after exporting and reopening a file. Leading zeros, a plus sign and long identifiers should not be treated as arithmetic.
Use a confirmation step
Ask the customer to read the final number back, or show it on the order summary. Confirm the current network separately. A plausible prefix is not enough for a ported line.
Do not repair an incomplete number by guessing the missing digit. If the customer sends two different numbers in a conversation, ask which one should receive this particular order.
Ask a developer for boundary tests
Include domestic and international input, spaces pasted from a contact, a missing digit, an extra digit and an unsupported country. The expected result should be either a clearly confirmed normalisation or a useful validation error, never an unexplained recipient change.
Before submitting a YHOMMYDATA purchase at https://yhommydata.com/, inspect the recipient shown in its current purchase screen. Keep the reference after payment and investigate an unclear result before repeating it.
Network verification guide: https://yhommydata.com/blog/buy-data-for-ported-number-nigeria/
Technical reference: https://github.com/google/libphonenumber