woocommerce/woocommerce-gateway-stripe

[HC] Logs report outdated Stripe API version by default?

Closed this issue · 2 comments

Describe the bug
It appears that the reporting of Stripe API version within the plugin's logs is not correct, as it defaults to Stripe Plugin API Version: 2019-09-09.

To Reproduce
Steps to reproduce the behavior:

  1. Have the latest version of the Stripe plugin installed
  2. Enable logging
  3. Make sure the latest, or a recent, Stripe API is in use when setting up webhooks and keys for connecting the plugin
  4. See the logs reporting Stripe Plugin API Version: 2019-09-09 — despite the actual Stripe API version in use.

Expected behavior
The correct date of the Stripe API in use to be reported.

Screenshots

Screenshot 2024-06-09 at 12 45 18 Screenshot 2024-06-09 at 12 43 33

Environment (please complete the following information):

  • WordPress Version → 6.5.4
  • WooCommerce Version → 8.9.2
  • Stripe Plugin Version → 8.3.1
  • Browser [e.g. chrome, safari] and Version → Chrome Version 125.0.6422.142 (Official Build) (arm64)

Additional context
For further context, see here:

Hi @anastas10s-afk 👋

See the logs reporting Stripe Plugin API Version: 2019-09-09 — despite the actual Stripe API version in use.

The log is correct as the intention is to log the API version used on the plugin side (the version used to make requests from the Stripe plugin to the Stripe platform). We are not logging the API version of the client's Stripe dashboard.

Hi @Mayisha 👋
Noted, thank you for clarifying. Marking as closed then. 🙂