![]() $ sudo vim /etc/hostsĪnd add the new domain that resolves to our local IP. In your terminal, open the file /etc/hosts with your favorite editor, in my case I love using vim. In order to generate a certificate we need a domain, when working on our local we can easily define domains that resolve to our local IP address. In order to integrate stripe I needed to run my dev environment over a secure connection. I'm using webpack dev server to run the React App. In production that's quite easy to accomplish, in fact, the demo version, as well as the community I run using this software, are both running over HTTPS.īut when it comes to my development environment, nothing is under a secure connection. A few days ago I decided to work on this new feature, however, I found a few challenges along the way.įirst of all, if we want to use Stripe we need to run our application over HTTPS, otherwise the JavaScript SDK doesn't run properly. One of the most popular feature requests of the Music App is to support memberships using Stripe.
0 Comments
Leave a Reply. |