gpt4 book ai didi

javascript - 无法向 Stripe Connect 银行账户添加额外的验证文件以启用付款

转载 作者:行者123 更新时间:2023-12-04 13:24:55 25 4
gpt4 key购买 nike

问题 - 我使用哪些字段来创建正确的 token 来更新我的 Stripe 银行账户以启用支付?
我正在尝试启用我的 Stripe 银行账户付款 - 在使用此测试路由和帐号 (test number link) 触发银行账户所有权验证状态后,该状态会禁用付款。

routing number: 110000000 , account number: 000999999991


我正在尝试通过为使用这些测试号码创建帐户时收到的错误添加附加文档来启用付款。
当前由于错误:

documents.bank_account_ownership_verification.files


尝试 1:我尝试使用这些 fields 更新帐户但失败了

account = {
documents: {
bank_account_ownership_verification: {
files: this.file.value
}
}
};

我收到一条 Stripe 错误消息:

Unrecognized token creation parameter parameter: documents is not a recognized parameter. This may cause issues with your integration in the future.


尝试 2:然后我尝试使用以下这些字段更新帐户,但再次未能看到任何付款状态更改。

account = {
individual: {
verification: {
additional_document: {
front: this.file.value,
back: this.file2.value
}
}
}
};

我收到一条 Stripe 错误消息:

Error updating account. You cannot change individual[verification][additional_document][front] via API if an account is verified. Please contact us via ht


仅供引用 - 我可以从两次尝试中生成帐户 token ,但都无法使用 Stripe 更新帐户以启用支付
这是生成帐户 token 的代码,然后将其传递到我的服务器,在该服务器上调用 Stripe API 来更新帐户:

// attempt 1
let account = {
tos_shown_and_accepted: true,
documents: {
bank_account_ownership_verification: {
files: this.file.value
}
}
};
// attempt 2
let account = {
tos_shown_and_accepted: true,
individual: {
verification: {
additional_document: {
front: this.file1.value,
back: this.file2.value
}
}
}
};

from(this.stripe.createToken('account', account)).pipe(take(1)).subscribe((result: any) => {

if (result.error) {
this.alertService.danger(result.error.message);
} else {

this.accountService.updateStripeAccount(this.route.snapshot.paramMap.get('id'), result.token.id).subscribe(() => {
this.router.navigate(['/account/banks/accounts']);
this.alertService.info("Account updated successfully");
}, error => {
console.log(error);
}).add(() => {
this.loadingAccount = false;
});

}
});

最佳答案

简短的回答是,您无法使用帐户 token 来执行此操作。
目前,帐户 token 不支持 documents哈希所以传入 documents.bank_account_ownership_verification不会工作。您唯一的选择是通过 documents.bank_account_ownership_verification (见 apiref )当您直接更新帐户时(不是通过 token )。

关于javascript - 无法向 Stripe Connect 银行账户添加额外的验证文件以启用付款,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69051138/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com