Latest Stripe API Version

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

Leave a Reply