I am using laravel framework, and trying to integrate square web payment SDK. As I saw that The Square payment form is deprecated. I have followed the steps as mentioned in the link “https://developer.squareup.com/reference/sdks/web/payments”. But the form is not visible only the pay button is visible. How can I display the options required for card payment. And when check my console it show the following “Uncaught (in promise) WebSdkEmbedError: Web Payments SDK can only be embedded on sites that use HTTPS”. Can I not display the cards required options without SSL. Please Guide me.
With Square’s APIs, HTTPS is required for all API calls to Square endpoints. Unencrypted HTTP API calls do not work.
We strongly recommend finding a way to secure your websites with HTTPS—even if that means changing your hosting provider. Currently Square doesn’t provide this certificate but many hosting providers support one-click installation of SSL certificates from Let’s Encrypt, a free, automated, open-source certificate authority.