Hey guys I’m building an electron app with free/premium model, and would like to be able to accept payments in app using Stripe. I’ve run into something tricky though, and was hoping someone out there might be able to shed some light on it:
I want to use Stripe Elements to build the payment form, and found this in the requirements
"All submissions of payment info using Elements are made via a secure HTTPS connection. However, to protect yourself from certain forms of man-in-the-middle attacks, and to prevent your customers from seeing Mixed Content warnings in modern browsers, you must serve the page containing the payment form over HTTPS as well.
In short, the address of the page containing Elements must start with https:// rather than just http://.
Question: Is there a secure way for me to display the payment form in electron? Since it’s technically not being served over https as per the requirement?
I understand that I have to have an SSL certificate on my server that the electron app is going to send the payment request to. The part I’m confused about is how to securely host the payment form in the electron app in the first place (before any sending to servers), and have it meet the secure HTTPS requirement above.
Do you guys know how this could be done?