条纹连接错误'没有这样的商家'

时间:2016-03-16 16:15:51

标签: payment-gateway stripe-payments stripe-connect

我正在使用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
}

1 个答案:

答案 0 :(得分:2)

charging through the platform时,destination参数应设置为代表您正在处理费用的已连接帐户的ID。帐户ID类似于acct_...

现在,您似乎正在通过您的平台client_idconnecting users与OAuth流时使用client_id