I’m developing a Windows desktop application which receives card information from a non-square card reader and supplies that information to square for payment processing. I am using a CEFSharp offscreen browser library in order to utilize the SqPaymentForm that is used via javascript. However, I’m having issues loading the SqPaymentForm because square requires the site its communicating with to be https.
I get this javascript error:
Uncaught (in promise) HttpsRequiredError: SqPaymentForm can only be embedded on sites that use HTTPS.
And it points me to this https://developer.squareup.com/docs/payment-form/troubleshooting#the-sqpaymentform-iframe-is-not-loading
under the section “SqPaymentForm iFrame is not loading”
What are my options in this scenario?