David Kimura PRO said over 3 years ago on Stripe Payments :
  What version of the Stripe gem are you using? I  used this version in the episode

stripe (5.25.0)

From the CHANGELOG, it looks like this was added in

5.16.0 - 2020-02-26
#906 Add support for listing Checkout sessions