In the latest Stripe versions, you don't need to supply an apiVersion property anymore in the constructor. It should look like:
private readonly stripe = new Stripe(
this.configService.get('STRIPE_SECRET_KEY'),
);Please refer to the GitHub repository here: https://github.com/mguay22/sleepr/blob/main/apps/payments/src/payments.service.ts
Be sure to watch till the end of the section to get some additional updates on implementing our payments with the latest version of Stripe.