2017-07-31 77 views
0

我将回归设置为true,但是当我在广场上完成付款时,应用程序不会自行重定向。销售方面的Web应用程序 - “auto_return”不起作用

{ 
    "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"] 
    } 

回答

2

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 
} 
+0

谢谢!!!!它现在的作品:) – thebigtoeman77

+1

@ thebigtoeman77,你能标记这是正确的,所以人们知道你的问题得到了回答? –

相关问题