You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BILL-5582: Add descriptor_code support to bank account verification
Stripe updated microdeposit verification from two amounts to a single
6-character descriptor code. This adds support for the new path while
keeping the existing amounts path fully backwards compatible.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@@ -836,6 +842,32 @@ public function setObject($object)
836
842
837
843
return$this;
838
844
}
845
+
846
+
847
+
/**
848
+
* Gets microdeposit_type
849
+
*
850
+
* @return string|null
851
+
*/
852
+
publicfunctiongetMicrodepositType()
853
+
{
854
+
return$this->container['microdeposit_type'];
855
+
}
856
+
857
+
/**
858
+
* Sets microdeposit_type
859
+
*
860
+
* @param string|null $microdeposit_type The type of microdeposit verification required. Present when verified is false; null once the account is verified. Use this to determine which field to submit to the verify endpoint: amounts or descriptor_code.
* @param string|null $descriptor_code The 6-character code (beginning with SM) from the bank statement descriptor of the single $0.01 microdeposit. Required when microdeposit_type is descriptor_code.
if (!is_null($descriptor_code) && !preg_match("/^SM[a-zA-Z0-9]{4}$/", $descriptor_code)) {
299
+
thrownew \InvalidArgumentException('invalid value for $descriptor_code when calling BankAccountVerify., must conform to the pattern /^SM[a-zA-Z0-9]{4}$/.');
0 commit comments