Square: The Authorization http header of your request was malformed.

  • tcdc
    Asked on December 20, 2020 at 1:35 PM

    I have a client that can't make a square payment through a JofForm integration with Square. How do I figure this out and maintain this client ASAP!

  • Jimmy_D
    Replied on December 20, 2020 at 4:09 PM

    Our apologies for the inconvenience. 

    I have checked your form, and the integration is connected corectly. May we know what kind of error your client is receiving when he tries to submit the form? 

    Awaiting your reply,

  • tcdc
    Replied on December 20, 2020 at 4:22 PM
    Payment Error
    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 ABC123def456GHI890jk10'). For more information, see https://docs.connect.squareup.com/api/connect/v2/#requestandresponseheaders. If you are seeing this error message while using on of our officially supported SKDs, please report this to developers@squareup.com
    Go back and fix
    ...
  • Ariel JotForm Support
    Replied on December 20, 2020 at 8:37 PM

    Hi there,

    Are you referring to the https://www.jotform.com/203544516733151 form?

    Try reconnecting your form to Square.

    You can do so by opening the Square Payment wizard, then changing the mode to Test Mode then back to Live Mode, and finally clicking the Connect button.

    Give it a try and let us know how it goes.


  • tcdc
    Replied on December 20, 2020 at 10:33 PM
    That worked. Why would that disconnect?
    I needed to charge $1 then credit $1 in order to test which is a hassle. Is there another way to test other forms without having to put a charge through?
    ...
  • Vanessa_T
    Replied on December 21, 2020 at 1:05 AM

    Since I could no longer check the previous status of your form, I can only assume that the payment field was not connected.

    Note that in order to accept payments, you always have to connect the payment field.

    If you do not want to process real payments, then please set it to Test Mode. In any case, even on test mode, you have to connect your Square account.