Testing Stripe through C9


#1

I’m attempting to test Stripe from a Python App.

Is there anyway to do this through Cloud9? I imagine if I deployed to Heroku I’d get a similar error — not true SSL certificate? I’ve attempted using the package certifi.

Any insight into this error would be appreciated.

With either InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning


#2

Hey @WhiskySoda :slightly_smiling:,

I’ve only done it on SSH C9 Workspaces so far but maybe you use use a LetsEncrypt certificate. See a tutorial on how to set this up on Digital Ocean here:

Best,
Mike
:alien:


#3

So I was able to do this:

pip install --upgrade ndg-httpsclient

That seems to have solved it for me.

@WhiskySoda YMMV, but if you’re willing, give it a go? I’m curious to see if it works for more then just me.


#4

I’ll have a go. Thanks - this will hopefully save me having to test once in production.