Square Integration: Test mode on payment form isn't working - INVALID_REQUEST_ERROR

  • Profile Image
    hempsisales
    Asked on March 18, 2020 at 03:30 PM

    Hello,

    We have created a payment form, https://form.jotform.com/200757651755057 but when I try to test it in test mode

    with the values that Square provides, I get this message:

    https://www.screencast.com/t/hAxhPEJNOxJb

    Please advise. Thanks.

  • Profile Image
    Carlos_C
    Answered on March 18, 2020 at 04:55 PM

    Hello,

    Thank you for contacting us.

    Please try enabling the test mode under the Additional Gateway Settings, please check the following animation:


    You can use the test cards from Square to make a test submission in your form.

    https://docs.connect.squareup.com/articles/using-sandbox#sandbox-special-values.

    The other option is to create a Sandbox account https://developer.squareup.com/docs/testing/test-values.


    If you need any further assistance, please let us know. We will be happy to help.

  • Profile Image
    hempsisales
    Answered on March 18, 2020 at 09:32 PM

    I have those settings set to 'test mode' but I am getting this error message now: https://www.screencast.com/t/t21SxW0Tntq

  • Profile Image
    gerardw
    Answered on March 18, 2020 at 09:52 PM

    I can see that you have connected your form to Square on Live mode now.

    When you connect to Test mode, you should:

    1. Enable TEST mode from Additional Gateway settings drop down

    2. Change Mode to TEST.

    3. Enter Business location

    4. Use the test cards provided by Square to test payment - https://developer.squareup.com/docs/testing/test-values  

    Since you have now connected to Live mode, please test submit your form and let us know if you are still getting this same error.

  • Profile Image
    hempsisales
    Answered on March 18, 2020 at 11:01 PM

    Like I said in my previous email, I have done all that for testing, but I am still getting different error messages. https://www.screencast.com/t/8W8ML3XV

    So, either the test cards are not working or there is something else going on.

  • Profile Image
    gerardw
    Answered on March 18, 2020 at 11:24 PM

    We apologize for this inconvenience. I cloned your form and connected to our Test account. I used the test cards as prescribed by Square and was able to successfully submit:

    1584587441screencast19032020_4.gif

     

    I checked your form. You have setup the payment field to Test correctly, but the Test mode switch under "Additional Gateway settings" was not enabled. I tried enabling that on your form, but the payment field got disconnected. Please connect once more and check. Do ensure that you enable the Test mode under Additional Gateway settings.

    15845882541903_3.png

    Additionally could you check if Sandbox API is enabled on your Square account?

  • Profile Image
    hempsisales
    Answered on March 18, 2020 at 11:52 PM

    I put the test mode at yes, correct? For some reason, my Square connection keeps getting connected. I am not familiar with enabling Sandbox API on our Square account.

  • Profile Image
    jherwin
    Answered on March 19, 2020 at 12:39 AM

    Can you please check the screencast below if you're doing the same?
    1584592606kVUjyGowru.gif
    Set the mode to "TEST MODE" first and then connect your Square account. If the account still disconnects then please contact square support and ask them how to enable TEST MODE in your Square account.

  • Profile Image
    hempsisales
    Answered on March 24, 2020 at 01:15 PM

    Hello,

    I contacted Square and they said there isn't any test mode that needs to be activated on their end. I tried another test and received this error message: https://www.screencast.com/t/dBjLKjbfTpFa

  • Profile Image
    JohnRex
    Answered on March 24, 2020 at 02:06 PM

    Hello @hempsisales - I understand that I may be redundant, but I just want to make sure that you're not experiencing cache issues when switching between LIVE and TEST modes.

    Once more, could you please try switching the integration to TEST MODE following the instructions given by my colleagues above, then inform us here so we could make a test submission from our end.

    If it still failed, then we have to escalate the issue to our developers to have it checked backend.

    We'll wait for your response.

  • Profile Image
    hempsisales
    Answered on March 24, 2020 at 06:46 PM

    Hi, I have followed the instructions and enabled 'test mode'. So, you can make a submission from your end.

    Also, one thing I noticed in setting it to test mode and then making changes down below is that whenever I make a change, it disconnects from Square. Is that supposed to happen?

    Thank you.

  • Profile Image
    Mike
    Answered on March 24, 2020 at 07:29 PM

    We would like to apologize for the inconvenience.

    I have received an error upon your form submission in a test mode:

    A bug report ticket has been escalated to our developers in order to proceed with further investigation. We cannot provide an ETA on when it will be addressed, but we will let you know if we have any updates on this.

    It is most likely that the form will work properly in the Live Mode, so you may consider asking someone to submit a real submission to make sure that the payment processing is working properly.

  • Profile Image
    hempsisales
    Answered on April 12, 2020 at 06:53 PM

    Hello, is there any update to the bug report ticket regarding receiving an error when trying to use the test mode (sandbox)? It's really hard to test these order forms we are creating if I can't check it in test mode and don't want to spend money testing in the live mode.

  • Profile Image
    jherwin
    Answered on April 13, 2020 at 03:13 AM

    We haven't heard anything yet from our developers regarding the issue being reported in this thread and we would like to apologize for any inconvenience. Although we cannot provide any timeframe for when the issue will be fixed, please be assured that once there is an update we will notify you in this thread the soonest.

    In the meantime, please set the pricing for your items to $0.01 so you can try submitting the form while it's in live mode.

  • Profile Image
    ender
    Answered on August 04, 2020 at 10:42 AM

    Hello,

    We fixed the bug about Square's test mode. Would you please check and inform us if you have any problems?

    Thank you, best regards.