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

Can't add additional verification documents to Stripe Connect bank account to enable payouts

问题 - 我应该使用哪些字段来创建正确的令牌来更新我的 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

仅供参考 - 我可以从两次尝试中生成帐户令牌,但都无法使用 Stripe 更新帐户以启用支付

这是生成帐户令牌的代码,然后将其传递到我的服务器,在服务器上调用 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;
    });

  }
});

简而言之,您无法使用帐户令牌执行此操作。

目前,帐户令牌不支持 documents 哈希,因此传入 documents.bank_account_ownership_verification 无效。您唯一的选择是在直接更新帐户(而不是通过令牌)时传入 documents.bank_account_ownership_verification(请参阅 apiref)。