diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b5f0e0f..210bf2f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ CHANGELOG ========= +3.8.1 +------------------ + +* Updated the documentation for the email and phone verification inputs. Set + `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 + not track verification, leave them unset. Set a verification time only when + the value is `true`. There are no code changes. + 3.8.0 (2026-11-18) ------------------ diff --git a/README.md b/README.md index 0d182c92..6633d8ad 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,6 @@ $request = $mf->withDevice( phoneCountryCode: '1', phoneVerificationMethod: 'network', phoneWasVerificationSuccessful: false, - phoneVerificationTime: '2026-10-01T14:31:00Z', deliverySpeed: 'same_day' )->withPayment( method: 'card', diff --git a/src/MinFraud.php b/src/MinFraud.php index 2af8bfcb..f7d9c04c 100644 --- a/src/MinFraud.php +++ b/src/MinFraud.php @@ -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 * 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 + * `false`. If your system does not track + * email verification, omit this. * * @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