stripe / stripe-php

PHP library for the Stripe API.
https://stripe.com
MIT License
3.75k stars 848 forks source link

Fall back to InvalidRequestException when code is `invalid_fields` #1759

Closed helenye-stripe closed 1 month ago

helenye-stripe commented 1 month ago

For v2 APIs, when an error has code invalid_fields, it should fail with InvalidRequestException. This addresses that for V2, but V1 behavior remains unchanged.

helenye-stripe commented 1 month ago

Closing because I misread the code here -- it does fall back to InvalidRequestException!