【发布时间】:2017-03-10 22:58:17
【问题描述】:
我正在尝试将资金转入托管账户,但我收到错误消息:“必须提供来源或客户。”。这是发送到 API 的请求正文和标头。
var transferBody= {
"amount": "1000",
"currency": "usd",
"destination": "default_for_currency",
}
let apiTransferRequest = {
method: 'post',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Bearer ' + secret_key,
'stripe_account': 'acct_198vxeLmTNKjRg7x'
},
body: transferBody
}
不应该在标题中提供'stripe_account' 让我自己代表托管帐户行事,那么反过来应该充当来源?
据我了解,在标题中提供'stripe_account' 并使用'destination' 参数设置为'default_for_currency',使托管账户将资金从其自己的Stripe 托管账户余额转移到其默认借记卡。
我正在关注这个示例,在标准传输 https://stripe.com/docs/connect/bank-transfers 下,并且我正在使用 React Native,所以据我所知,这将是使用 Stripe.js 的唯一方法。我在关注http://blog.bigbinary.com/2015/11/03/using-stripe-api-in-react-native-with-fetch.html
提前感谢您,我们会接受/支持答案。
【问题讨论】:
标签: javascript react-native stripe-payments payment-gateway stripe-connect