payment-gateway - Stripe 连接错误 'No such merchant'

标签 payment-gateway stripe-payments stripe-connect

我正在使用 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 platformdestination 参数应设置为您代表其处理费用的关联帐户的 ID。帐户 ID 类似于 acct_...

现在看起来您正在传递平台的 client_id。当 connecting users 时使用 client_id使用 OAuth 流程。

关于payment-gateway - Stripe 连接错误 'No such merchant',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36041219/

相关文章:

ruby-on-rails - strip 连接身份验证失败 - invalid_client : No such API key: Bearer

stripe-payments - 是否有使用 Stripe Connect 的分步教程?

node.js - 无法使用 Stripe API 更新争议证据

payment-gateway - 如何使用 Braintree.js 与 Braintree 支付网关集成?

php - 如何在 PHP 中将 MoneyBookers 集成到 Web 应用程序中?

stripe-payments - 如何在 swapAndInvoice Laravel Cashier 方法中传递数量?

perl - 在 Curl 中向 Stripe 客户添加额外的卡?

javascript - payone 与 creditcardcheck 集成

android - 如何整合谷歌支付?

stripe-payments - Stripe 可以支持离线支付吗?