所以我正在使用谷歌函数编写一个脚本来自动支付我的工人工资!在我的后端,我已经存储了公共令牌和帐户 ID。我正在尝试使用格子变成条纹令牌,然后使用条纹进行转移!条纹的东西正在工作,但格子函数不会返回新的条纹银行帐号..有什么想法吗?
plaidClient.exchangePublicToken("public-sandbox-6be57fb5-3286-4bc8-a770-54a16ea39283",
res => {
var accessToken = res.access_token;
// debugging = exchangedata.access_token;
//debugging = err.message;
// Generate a bank account token
plaidClient.createStripeToken(accessToken, snapshot.val().plaid_account_id,
res => {
bankAccountToken = res.stripe_bank_account_token;
stripe.transfers.create({
amount: (Number(appointmentchildSnapshot.val().price)/3).toString(),
currency: "usd",
destination:bankAccountToken,
transfer_group: "ORDER_95"
},(_err, transfer)=> {
// asynchronously called
});
});