Square payment form

Built an application using square payment form almost 2 years ago and were both tested in sandbox and production, everything worked but the client put it all on hold and only just got back to it to find that it’s not working.
First the http post url that was working originally was:
https://connect.squareup.com/v2/locations/#MylocationID#/transactions
Reading the docs this is now depreciated and instead use:
https://connect.squareup.com/v2/payments
and put the location id in the body with card_nonce and amount_money etc, is this correct ?
I any case I’m getting:
Card payment failed.
Reason: The Authorization http header of your request was malformed. The header value is expected to be of the format “Bearer TOKEN” (without quotation marks), where TOKEN is to be replaced with your access token (e.g. “Bearer ABC123def456GHI789jkl0”).
Can anyone help ?

Hi @akos welcome to the forums!

Authorization errors are typically due to incorrect access tokens (or expired/revoked access tokens). If you’re using your personal access token, please make sure you’re using the correct environment. For example, if you’re using your sandbox access token, be sure to use connect.squareupsandbox.com instead of connect.squareup.com as the domain for API requests.

Hi there, thank you for coming back to me. Yeah the issue was that I was using the correct credentials but the url itself changed to [connect.squareupsandbox.com](http://connect.squareupsandbox.com/)
There were a number of changes I had to make which all seem to be different from about 2 years ago.
We haven’t found any emails containing updates/changes as to what might be changed in the API or payment form structure.
Is this likely to change again in the future if so how do we get notified ?
Thanks
Akos

Yeah the old sandbox was retired quite awhile ago, which used the same url as production. You can definitely subscribe to our developer newsletter which I believe gets sent out at the end of the month, every month: https://www.workwithsquare.com/developer-newsletter.html.