Repository navigation
STF-2488: Update verification input documentation - #310
Conversation
The shipping example sets the phone verification result to false. The verification time applies only to a completed verification. STF-2488 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
24fcb2b to
cabf584
Compare
cabf584 to
5f16e99
Compare
`true` now means that your system considers the email address or phone number verified as of the time of the event. `false` means that it is not verified, for any reason. Before, the documentation said not to set the value if no verification was attempted. Set the verification time only with `true`. If your system does not track verification, leave the value unset. STF-2488 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
5f16e99 to
66400bd
Compare
| `wasVerificationSuccessful` and `phoneWasVerificationSuccessful` to `true` | ||
| if your system considers the email address or phone number verified as of | ||
| the time of the event. Set them to `false` if it is not verified, for | ||
| example if its only verification is pending or failed. If your system does |
There was a problem hiding this comment.
Important: this entry does not tell users that a contact with no verification attempt now takes false.
The 3.8.0 entry below still says "Omit phone_was_verification_successful if no verification was attempted" and "Omit was_verification_successful if no verification was attempted". The new docblocks reverse that: a contact that you did not try to verify takes false. This entry gives only "pending or failed" as examples of false. A user who set up the integration from the 3.8.0 entry will read this entry and keep omitting the flag. The web service then reads these contacts as "does not track verification", which the new docs say is not the same as false.
Suggested fix: say it plainly, for example: "Set them to false if the email address or phone number is not verified, including when its only verification is pending or failed and when you did not try to verify it. Before, the documentation said to omit them if you did not try to verify." This also fixes the "Set them ... if it is not verified" pronoun mismatch.
🤖 Comment by Claude Opus 5.5.
| * This includes one whose only | ||
| * verification is pending or failed, and | ||
| * one that you did not try to verify. | ||
| * Omitting this is not equivalent to |
There was a problem hiding this comment.
The text leaves out the decision to send true or false on every request. The OpenAPI spec and the product decision on STF-2488 say: "If your system tracks email verification, send true or false for every request that includes this email address." Without it, a user can send the flag only on the event where the verification happened (for example, account creation) and omit it on later purchases. The docs say an omitted value is not the same as false, so those later requests then look like "does not track verification".
Suggested fix: after "Omitting this is not equivalent to false.", add "If your system tracks email verification, set this for every request that includes this email address." Make the same change in the billing (lines 654-657) and shipping (lines 763-765) $phoneWasVerificationSuccessful docblocks, with "phone verification" and "this phone number".
🤖 Comment by Claude Opus 5.5.
| * one that you did not try to verify. | ||
| * Omitting this is not equivalent to | ||
| * `false`. If your system does not track | ||
| * email verification, omit this. |
There was a problem hiding this comment.
The text leaves out "The choice can affect risk scores." The OpenAPI spec keeps this sentence, and the product decision on STF-2488 says to keep it. It tells users why the choice between false and omitting matters.
Suggested fix: add "The choice can affect risk scores." at the end of this docblock, and at the end of the billing (line 657) and shipping (line 765) $phoneWasVerificationSuccessful docblocks.
🤖 Comment by Claude Opus 5.5.
| @@ -204,7 +204,6 @@ $request = $mf->withDevice( | |||
| phoneCountryCode: '1', | |||
| phoneVerificationMethod: 'network', | |||
| phoneWasVerificationSuccessful: false, | |||
There was a problem hiding this comment.
Nit: the README now leaves out the shipping phone verification time because the flag is false. The tests that mirror this example still send that pair, so they now go against the new docs:
tests/data/minfraud/full-request.jsonline 49 sends"phone_verification_time": "2026-10-01T14:31:00Z"with"phone_was_verification_successful": false.testFullInsightsRequestUsingNamedArgsintests/MaxMind/Test/MinFraudTest.phpline 530 setsphoneVerificationTime: '2026-10-01T14:31:00Z'withphoneWasVerificationSuccessful: false.testEmailVerificationWithHashing(lines 1203-1204 and 1210-1211) sendsverification_timewithwas_verification_successful => false.
Suggested fix: remove the shipping phone_verification_time from the fixture and the named-args test, so that the README and the full request match again. In the hashing test, set was_verification_successful to true or remove verification_time.
🤖 Comment by Claude Opus 5.5.
| 3.8.1 | ||
| ------------------ | ||
|
|
||
| * Updated the documentation for the email and phone verification inputs. Set |
There was a problem hiding this comment.
Nit: this entry does not mention the new guidance for phoneVerificationMethod / phone_verification_method. The docblocks now say that the method is for the most recent completed verification. If the phone number is not verified, the method can be the method of the most recent attempt, and you do not set it if you did not try to verify. The PR description lists this change, but a user who reads only the changelog keeps sending the method of the latest attempt, even when an earlier verification makes the flag true.
Suggested fix: add a sentence about the phone verification method to this entry.
🤖 Comment by Claude Opus 5.5.
| ------------------ | ||
|
|
||
| * Updated the documentation for the email and phone verification inputs. Set | ||
| `wasVerificationSuccessful` and `phoneWasVerificationSuccessful` to `true` |
There was a problem hiding this comment.
Nit: this entry names only the named arguments wasVerificationSuccessful and phoneWasVerificationSuccessful. Users who pass arrays use was_verification_successful, phone_was_verification_successful, verification_time, and phone_verification_time. The 3.8.0 entry names both forms. A user who searches the changelog for was_verification_successful finds only the 3.8.0 entry, which says to omit the flag if no verification was attempted.
Suggested fix: name the array keys too, as the 3.8.0 entry does.
🤖 Comment by Claude Opus 5.5.
| * address succeeded, for example by | ||
| * @param bool|null $wasVerificationSuccessful Whether the end user has verified that | ||
| * they control the email address, as of | ||
| * the time of the event, for example by |
There was a problem hiding this comment.
Nit: "as of the time of the event, for example by confirming a link sent to the address" puts the example after the time phrase. It reads as an example of the time, not of how the user verified the address.
maxmind/openapi#28 puts the example in a separate sentence: "For example, the user clicked a link that you sent to the address." Suggest the same here, for example: "Whether the end user has verified that they control the email address, as of the time of the event. For example, the user confirmed a link sent to the address."
The same comment is on the Java and .NET PRs.
🤖 Comment by Claude Opus 5.5.
| if your system considers the email address or phone number verified as of | ||
| the time of the event. Set them to `false` if it is not verified, for | ||
| example if its only verification is pending or failed. If your system does | ||
| not track verification, leave them unset. Set a verification time only when |
There was a problem hiding this comment.
Nit: this entry does not say that verificationTime / verification_time changed meaning. The 3.8.0 documentation described it as "The date and time of the most recent attempt to verify the email address". Now it is the time that the user completed the verification, and only for a true value. A caller that sends the time of the latest attempt, for example the time it sent the link, gets no signal to change.
Suggest one more sentence, for example: "The verification time is now the time of the verification behind a true value, not the time of the most recent attempt."
The Java PR has the same comment.
🤖 Comment by Claude Opus 5.5.
Summary
truefor the verification result now means that your system considers the email address or phone number verified as of the time of the event. An earlier completed verification still counts, even if a newer attempt is pending or failed.falsemeans that the email address or phone number is not verified. This includes a pending or failed verification and a contact with no verification attempt.true.This is a documentation change. No field names, types, or values change.
STF-2488
🤖 Generated with Claude Code