Repository navigation
STF-2488: Update verification input documentation #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,17 @@ | ||
| CHANGELOG | ||
| ========= | ||
|
|
||
| 3.8.1 | ||
| ------------------ | ||
|
|
||
| * Updated the documentation for the email and phone verification inputs. Set | ||
| `wasVerificationSuccessful` and `phoneWasVerificationSuccessful` to `true` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: this entry names only the named arguments Suggested fix: name the array keys too, as the 3.8.0 entry does. 🤖 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Important: this entry does not tell users that a contact with no verification attempt now takes The 3.8.0 entry below still says "Omit Suggested fix: say it plainly, for example: "Set them to 🤖 Comment by Claude Opus 5.5. |
||
| not track verification, leave them unset. Set a verification time only when | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: this entry does not say that Suggest one more sentence, for example: "The verification time is now the time of the verification behind a The Java PR has the same comment. 🤖 Comment by Claude Opus 5.5. |
||
| the value is `true`. There are no code changes. | ||
|
|
||
| 3.8.0 (2026-11-18) | ||
| ------------------ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -204,7 +204,6 @@ $request = $mf->withDevice( | |
| phoneCountryCode: '1', | ||
| phoneVerificationMethod: 'network', | ||
| phoneWasVerificationSuccessful: false, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: the README now leaves out the shipping phone verification time because the flag is
Suggested fix: remove the shipping 🤖 Comment by Claude Opus 5.5. |
||
| phoneVerificationTime: '2026-10-01T14:31:00Z', | ||
| deliverySpeed: 'same_day' | ||
| )->withPayment( | ||
| method: 'card', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -497,18 +497,31 @@ public function withAccount( | |
| * @param string|null $domain The domain of the email address used in the | ||
| * transaction. Do not include the `@` in this | ||
| * field. | ||
| * @param string|null $verificationTime The date and time of the most recent | ||
| * attempt to verify the email address, if | ||
| * known, in RFC 3339 date-time format. The | ||
| * time must not be before | ||
| * @param string|null $verificationTime The date and time that the end user | ||
| * completed the most recent verification of | ||
| * the email address, if known, in RFC 3339 | ||
| * date-time format. Set this only if | ||
| * `$wasVerificationSuccessful` is `true`. | ||
| * The time must not be before | ||
| * 1970-01-01T00:00:00Z or more than two days | ||
| * in the future. | ||
| * @param bool|null $wasVerificationSuccessful Whether the most recent verification | ||
| * that the end user controls the email | ||
| * 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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. |
||
| * confirming a link sent to the address. | ||
| * Omit this if no verification was | ||
| * attempted. | ||
| * Set this to `true` if your system | ||
| * considers the email address verified | ||
| * as of the time of the event. An | ||
| * earlier completed verification still | ||
| * counts, even if a newer attempt is | ||
| * pending or failed. Set it to `false` | ||
| * if the email address is not verified. | ||
| * 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The text leaves out the decision to send Suggested fix: after "Omitting this is not equivalent to 🤖 Comment by Claude Opus 5.5. |
||
| * `false`. If your system does not track | ||
| * email verification, omit this. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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 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) 🤖 Comment by Claude Opus 5.5. |
||
| * | ||
| * @throws InvalidInputException if a value has the wrong type, or if | ||
| * input validation is enabled and a value is | ||
|
|
@@ -610,18 +623,38 @@ public function withEmail( | |
| * @param string|null $postal The postal code of the user's billing address | ||
| * @param string|null $region The ISO 3166-2 subdivision code for the user's | ||
| * billing address | ||
| * @param string|null $phoneVerificationMethod The most recent method used to verify | ||
| * the billing phone number: delivered_code, | ||
| * network, or other | ||
| * @param string|null $phoneVerificationTime The date and time of the most recent | ||
| * verification of the billing phone number, | ||
| * in RFC 3339 date-time format. The time | ||
| * must not be before 1970-01-01T00:00:00Z | ||
| * or more than two days in the future. | ||
| * @param bool|null $phoneWasVerificationSuccessful Whether the most recent verification | ||
| * of the billing phone number succeeded. | ||
| * Omit this if no verification was | ||
| * attempted. | ||
| * @param string|null $phoneVerificationMethod The method used for the most recent | ||
| * completed verification of the billing | ||
| * phone number: delivered_code, network, or | ||
| * other. If the phone number is not | ||
| * verified, you can set the method of the | ||
| * most recent attempt if your system | ||
| * records it. Do not set this if you did | ||
| * not try to verify the phone number. | ||
| * @param string|null $phoneVerificationTime The date and time that the end user | ||
| * completed the most recent verification of | ||
| * the billing phone number, if known, in | ||
| * RFC 3339 date-time format. Set this only | ||
| * if `$phoneWasVerificationSuccessful` is | ||
| * `true`. The time must not be before | ||
| * 1970-01-01T00:00:00Z or more than two | ||
| * days in the future. | ||
| * @param bool|null $phoneWasVerificationSuccessful Whether the end user has verified that | ||
| * they control the billing phone number, | ||
| * as of the time of the event. Set this | ||
| * to `true` if your system considers the | ||
| * 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. | ||
| * Set it to `false` if the phone number | ||
| * is not verified. 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 `false`. If your system | ||
| * does not track phone verification, | ||
| * omit this. | ||
| * | ||
| * @throws InvalidInputException if a value has the wrong type, or if | ||
| * input validation is enabled and a value is | ||
|
|
@@ -701,17 +734,35 @@ public function withBilling( | |
| * @param string|null $lastName the recipient's last name | ||
| * @param string|null $phoneCountryCode the phone country code, with 1 to 4 digits | ||
| * @param string|null $phoneNumber the recipient's phone number | ||
| * @param string|null $phoneVerificationMethod the most recent method used to verify | ||
| * the shipping phone number: delivered_code, | ||
| * network, or other | ||
| * @param string|null $phoneVerificationTime the date and time of the most recent | ||
| * verification of the shipping phone number, | ||
| * in RFC 3339 date-time format. The time | ||
| * must not be before 1970-01-01T00:00:00Z | ||
| * or more than two days in the future. | ||
| * @param bool|null $phoneWasVerificationSuccessful whether the most recent verification of | ||
| * the shipping phone number succeeded. Omit this | ||
| * if no verification was attempted. | ||
| * @param string|null $phoneVerificationMethod The method used for the most recent | ||
| * completed verification of the shipping | ||
| * phone number: delivered_code, network, or | ||
| * other. If the phone number is not | ||
| * verified, you can set the method of the | ||
| * most recent attempt if your system records | ||
| * it. Do not set this if you did not try to | ||
| * verify the phone number. | ||
| * @param string|null $phoneVerificationTime The date and time that the end user | ||
| * completed the most recent verification of | ||
| * the shipping phone number, if known, in | ||
| * RFC 3339 date-time format. Set this only | ||
| * if `$phoneWasVerificationSuccessful` is | ||
| * `true`. The time must not be before | ||
| * 1970-01-01T00:00:00Z or more than two days | ||
| * in the future. | ||
| * @param bool|null $phoneWasVerificationSuccessful Whether the end user has verified that they | ||
| * control the shipping phone number, as of the | ||
| * time of the event. Set this to `true` if your | ||
| * system considers the 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. Set it | ||
| * to `false` if the phone number is not | ||
| * verified. 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 `false`. If your system | ||
| * does not track phone verification, omit this. | ||
| * | ||
| * @throws InvalidInputException if a value has the wrong type, or if | ||
| * input validation is enabled and a value is | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 flagtrue.Suggested fix: add a sentence about the phone verification method to this entry.
🤖 Comment by Claude Opus 5.5.