我正在使用 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
}
最佳答案
当 charging through the platform ,destination
参数应设置为您代表其处理费用的关联帐户的 ID。帐户 ID 类似于 acct_...
。
现在看起来您正在传递平台的 client_id
。当 connecting users 时使用 client_id
使用 OAuth 流程。
关于payment-gateway - Stripe 连接错误 'No such merchant',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36041219/