Square Point of sale web app-"auto_return" 不工作

Square point of sale web app-"auto_return" does not work

我将 return 设置为 true,但是当我在 Square 上完成付款时,应用程序不会自行重定向。

{
    "amount_money": {
      "amount" : "100",
      "currency_code" : "USD"
    },
    "auto_return":true,
    "callback_url" : "https://floating-inlet-19449.herokuapp.com/redirect",
    "client_id" : "sq0idp-U8x6mJyLFtHuhCfv9sqL5g",
    "version": "1.3",
    "notes": "notes for the transaction",
    "options" : {
      "supported_tender_types" : ["CREDIT_CARD"]
    }

auto_return 应该嵌套在 options 对象中,像这样:

{ 
    "amount_money": { "amount" : 100, "currency_code" : "USD" }, 
    "callback_url" : "https://floating-inlet-19449.herokuapp.com/redirect", 
    "client_id" : "sq0idp-U8x6mJyLFtHuhCfv9sqL5g", 
    "version": "1.3", 
    "notes": "notes for the transaction", 
    "options" : { 
        "supported_tender_types" : ["CREDIT_CARD"],
        "auto_return": true
}