github stripe/stripe-php v20.0.0

latest releases: v20.1.0-alpha.1, v20.1.0-beta.1
4 hours ago

This release changes the pinned API version to 2026-03-25.dahlia and contains breaking changes (prefixed with ⚠️ below). There's also a detailed migration guide to simplify your upgrade process.

Please review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.

  • ⚠️ Breaking change: #2038 Drop support for PHP < 7.2. This is also the last major version to support PHP 7.2 and 7.3. Please upgrade to 7.4+ before September 2026. See the versioning policy for more information.
  • ⚠️ Breaking change: #2042 Preserve null values in v2 JSON request bodies
    • The SDK now preserves and sends null when set in V2 API metadata and params, enabling you to clear metadata entries and some unsettable properties for V2 APIs.
    • ⚠️ The Util::objectsToIds() method now has a required $serializeNull parameter to indicate if null values set in the object should be output in the resulting hash. This is relevant for V2 POST APIs to let callers clear emptyable values.
  • #1917 Avoid using func_get_args
  • #2011 Ensure that previous_attributes is always an instance of StripeObject
  • #2033 Add runtime support for V2 int64 string-encoded fields

See the changelog for more details.

Don't miss a new stripe-php release

NewReleases is sending notifications on new releases.