So, testing in development worked accordingly, but moving to production yields the issue described in the title. I have contacted Stripe and they appear to be neglecting the problem.

The issue is intermittent, as if I refresh the page a few times, I can cause the error. It appears to be random.

I am using Heroku to run a multi-tenant app with Django. Heroku-18 stack.

I have a wildcard cert.

TLS version is 1.2

OpenSSL version is 1.1.1

Python version 3.6.10

Stripe version 2.41.1 (installed through pip and API version is up-to-date as well)

Error Log

Jan 13 21:58:36 app/web.1: raise error.APIConnectionError(msg, should_retry=should_retry) Jan 13 21:58:36 app/web.1: stripe.error.APIConnectionError: Could not verify Stripe's SSL certificate. Please make sure that your Jan 13 21:58:36 app/web.1: network is not intercepting certificates. If this problem persists, Jan 13 21:58:36 app/web.1: let us know at support@stripe.com.

In addition to these problems, the webhook I have fails from a 301 redirect. Not sure how my site is being redirected, but all instances of my webhook fail trying to connect to my site.

Honestly I am so stuck, so let me know if you need additional information to further help me.