Hi there, I am currently creating an e-commerce website and trying to integrate the Square payment form. I am currently following the documentation @https://developer.squareup.com/docs/web-payments/take-card-payment and have added the square cdn “https://sandbox.web.squarecdn.com/v1/square.js” in a script tag in the head of the html document. When initializing the form as shown in the documentation I get the below error
Type Error: window.Square.payments is not a function
Please find a screenshot of my code below.
is there something i am doing wrong? Any assistance will be much appreciated.