Install Public Preview SDKs
masterPublic preview features are available in versions with a -beta.X suffix. You can install them via Composer by specifying the version. It is recommended to pin the version in your composer.json to avoid breaking changes between preview releases.
If a preview feature requires a specific Stripe-Version header (e.g., feature_beta=v3), use Stripe::addBetaVersion().
composer require stripe/stripe-php:v<replace-with-the-version-of-your-choice>Stripe::addBetaVersion("feature_beta", "v3");