2016-03-16 24 views
3

我正在使用Stripe Connect處理付款,並且從我的應用程序接收付款的客戶端ID返回錯誤「No such merchant:ca_8xxx」。 我的代碼是:條紋連接錯誤'沒有這樣的商家'

try { 
    $charge = \Stripe\Charge::create(array(
    "amount" => $amount, 
    "currency" => "usd", 
    "source" => $token, 
    "description" => "Strike Charge", 
    "application_fee" => 500, 
    "destination" => $client_id //not working 
    )); 
} catch(\Stripe\Error\Card $e) { 
    // The card has been declined 
} 

回答

2

charging through the platform,該destination參數應其中你處理費用設置爲連接帳戶的ID代表。帳戶ID看起來像​​。

現在看起來你正在通過你的平臺的client_idclient_id在使用OAuth流時使用connecting users