I’m working through integrating the Catalog, Payments, Orders and Customers API’s for an e-commerce site. I’m expecting the workflow to go something like this:
- Create Order based on shopping cart line items populated with Catalog Item ID’s
- Ask for user’s information (email, name, address) and create Customer ID. Associate Customer ID with Order.
- Ask for Payment using SqPaymentForm and create Payment ID Associate Payment ID with Order.
I am using https: at all times when communicating with Square, to ensure security. However, in my development environment, i’m using XAMPP and running a local apache and PHP service and so on, for ease of testing, so I’m just using http: to serve my testing web pages. When I load up the SqPaymentForm I get this error:
jquery-1.11.1.min.js:4 Uncaught HttpsRequiredError: SqPaymentForm can only be embedded on sites that use HTTPS.
at St._initialize (-)
at new St (-)
at eval (eval at (-), )
at eval (anonymous)
at Function.globalEval (-)
at text script ()
at Pc (-)
at x (-)
at b (-)