首页 > 解决方案 > 资金无法发送到位于我们的账户,因为它在您的平台区域之外

问题描述

await stripe.transfers.create({
   amount: amount,
   currency: account.default_currency,
   source_transaction: chargeId,
   destination: accountId
});

从 stripe account (uk) 到 Us stripe connected account

标签: node.jsstripe-payments

解决方案


Stripe 不允许转移到平台区域之外

您可以使用以下方法管理多个国家的业务

首先使用带有目的地费用的条带创建费用 API

const charge = await stripe.charges.create({
  customer: data.customer,
  source: data.cardId,
  amount: amount,
  currency: user.currency,
  description: process.env.APP_NAME,
  statement_descriptor: process.env.APP_NAME,
  application_fee: platformFee,
  destination: accountId
});

创建费用后,您可以使用 create payout API 将该付款转移到该连接的帐户

await stripe.payouts.create({
    amount: amount,
    currency: currency,
 }, {
    stripeAccount: accountId,
});

这个流程对我有用


推荐阅读