2017-07-31 8 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、これはあなたの質問が答えられた知っているので、これを正しいとマークできますか? –

関連する問題