【问题标题】:Stripe Connect error 'No such merchant'Stripe Connect 错误“没有这样的商家”
【发布时间】:2016-07-02 15:50:25
【问题描述】:

我正在使用 Stripe Connect 处理付款,并且用于从我的应用程序接收付款的客户端 ID 返回错误“没有此类商家: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
}

【问题讨论】:

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


    【解决方案1】:

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

    现在看起来您正在传递您平台的client_idclient_id 用于 connecting users 与 OAuth 流。

    【讨论】:

      猜你喜欢
      • 2019-12-28
      • 2016-08-27
      • 2021-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多