2016-03-16 46 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