Skip to content

Commit

Permalink
Pin to latest API version
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Aug 15, 2023
1 parent b4ab319 commit 44f6790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/BaseStripeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class BaseStripeClient implements StripeClientInterface, StripeStreamingClientIn
'api_key' => null,
'client_id' => null,
'stripe_account' => null,
// Note, even if null, ApiRequestor will default this to Stripe::$apiVersion
'stripe_version' => null,
'api_base' => self::DEFAULT_API_BASE,
'connect_base' => self::DEFAULT_CONNECT_BASE,
Expand Down
2 changes: 1 addition & 1 deletion lib/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Stripe
public static $apiUploadBase = 'https://files.stripe.com';

/** @var null|string The version of the Stripe API to use for requests. */
public static $apiVersion = null;
public static $apiVersion = \Stripe\Util\ApiVersion::CURRENT;

/** @var null|string The account ID for connected accounts requests. */
public static $accountId = null;
Expand Down

0 comments on commit 44f6790

Please sign in to comment.