CC payment client side works. But server side gets 400 Bad Request

Dear All,

Cloudflair is responding with 400 Bad Request.

I tried and failed:

  1. Add http header Connection Close, but no change.

  2. Add curl parameter --http2 but No change.

  3. Add curl parameter --http2-prior-knowledge but No change.

  4. Add curl parameter --ipv4 but No change.

  5. Add curl parameter --ipv6 but new error: Could not resolve host: connect.squareupsandbox.com

  6. Autocomplete parameter is boolean, not string
    change
    data.put(“autocomplete”, “true”); // → json “autocomplete” : “true”
    to
    data.put(“autocomplete”, true); // → json “autocomplete” : true

  7. Amount parameter is integer, not string
    change
    data.put(“amount”, “” + amount * 100); // → json “amount” : “3300”
    to
    data.put(“amount”, amount * 100); // → json “amount” : 3300

No more options.

Need your help.

Many thanks