I am trying the EXACT code from the “Web Payments SDK Overview” page’s video. I did change the v0 to v1 in the and I am trying the production environment.
< s c r i p t href=“https://web.squarecdn.com/v1/square.js”></s c r i p t>
Then script tag …
(async () => {
console.log(“first async…”)
const payments = Square.payments(
'My App ID,
'My token
);
[snip]
On that const payment = line I get:
Uncaught (in promise) ReferenceError: Square is not defined
Can anyone just send me a link to a working HTML page that displays the CC form?
Help. They turned off the old payment API with no notification to me or my customer.