Sorry not to respond sooner.
I do not have sufficient knowledge to determine where the problem with square is happening.
In the end I signed up for an account with Stripe and this worked first time and is running live now.
Perhaps one day I will look again at square but for now Stripe is working fine.
Thanks again for your help
Jim
Many thanks for replying.
I will start looking at the items you suggest.