i have 3 shops using opencart, all on seperate accounts as they want to stay seperate. I set one up 2 years ago, another 1 year ago and the 3rd 6 months ago. between each i forgot how to do the squareup extension but am sure i have all 3 set up the same.
The first i created now seems to NOT be working, it just hangs when you click checkout.
on “inspection” in browser the console says
Uncaught ReferenceError: SqPaymentForm is not defined"
onScriptLoad SHOPPING CART line 2 > injectedScript:89
i am not a coder, which is why i use opencart, so i am flumuxed. Square says talk to opencart, opencart says talk to square.
Any help would be appreciated.
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
https://developer.squareup.com/docs/app-marketplace/rev-share
Develop for Japan
Square Developer Tools
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
Sorry everyone, but if i wanted an AI answer i would have asked on Google.
Is there anyone with any real experience of why a 2 year old set up would suddenly fail?
The SqPaymentForm JavaScript library was deprecated a few years ago and removed by Square. Your oldest shop is likely failing because it’s using an outdated version of the Square payment extension that references SqPaymentForm, which no longer exists. Your newer shops likely work because they were installed after the SDK change.
Fix: Update (or uninstall/reinstall) the Square payment extension in that oldest OpenCart shop to the latest version. You’ll likely need to re-enter your Square credentials afterward.
Let me know if this helps or if you run into any issues!
More info: Web Payments SDK
The version in opencart marketplace has not been updated since 2022 so i would have used exactly the same extension on all three shops.
I had a look at the details in square and it has something called webhooks which it says is depreciated and to use details above, but there are no details above.
I am not a coder, that is why i use opencart, but i also have no money to pay a developer, so google is my only friend.
As all three shops use the same details, except different square location so customers get the right banner on their receipts, i am at a loss why one should break.
I may just have to switch square off on ck and just get customers to phone their card details 
Based on this page it looks like the OpenCart extension was last updated in May of 2024. There is also a “get support” button on this page to get in touch with the developers of the integration there.
I have already put in a ticket with them but no reply yet.
In the past i have had to put in several tickets due to my lack of knowledge of coding and found them less than helpful.
Opencart is supposed to be easy to use, which is fine until something goes wrong 