node.js - 资金无法发送到位于我们的账户,因为它在您的平台区域之外
问题描述
await stripe.transfers.create({
amount: amount,
currency: account.default_currency,
source_transaction: chargeId,
destination: accountId
});
解决方案
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,
});
这个流程对我有用
推荐阅读
- rabbitmq - Rebus 与 RabbitMQ 接受来自 Python 的请求
- powershell - 获取注册表子项的所有权并通过系统帐户将其删除
- java - Recyclerview 适配器不刷新
- python - os.path 在多个文件导入中使用 Pyinstaller 指向不正确的位置
- bash - 如何解决 Android Studio 问题?
- azure - Hashicorp Terraform - 在 Azure Key Vault 中存储 Azure 存储帐户访问密钥
- c# - C# DLL 注入 - 运行应用程序的调用方法
- excel - 通过使用excel VBA仅引用一个数字来自动填充日期
- regex - Perl:正则表达式模式匹配
- java - Hibernate/JPA 不创建表