Unable to upload any further verification documents to Stripe Connect bank account in order to activate payouts

Query - Which specific parameters should I use to generate the correct token for updating my Stripe bank account in order to activate payouts?

I've attempted to activate payouts for my Stripe bank account by using a test routing and account number (test number link) to trigger verification, but encountered issues that disabled payouts.

Routing number: 110000000 , Account number: 000999999991

In an effort to resolve this issue, I tried adding additional documentation related to the error message received when creating the account with the aforementioned test numbers.

Error Message:

documents.bank_account_ownership_verification.files

First Attempt: I made an attempt to update the account using these fields but was unsuccessful

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

A corresponding error was received from Stripe stating:

Unrecognized token creation parameter: 'documents' is not a recognized parameter. This may lead to integration issues in the future.

Second Attempt: Subsequently, I tried updating the account with the below fields but once again failed to observe any change in the payout status.

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

An error response from Stripe mentioned:

Error updating account. You cannot modify

individual[verification][additional_document][front]
via API if an account is verified. Please contact us for assistance.

Just so you know, although I can generate the account token from both attempts, neither successfully updates the account on Stripe to enable payouts.

Below is the code snippet used to create the account token which is then sent to my server for calling the Stripe API to update the account:

// First attempt
let account = {
  tos_shown_and_accepted: true,
  documents: {
    bank_account_ownership_verification: {
      files: this.file.value
    }
  }
};
// Second attempt
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;
    });

  }
});

Answer №1

You cannot achieve this using Account Tokens.

At the moment, Account Tokens do not support the documents hash, so trying to pass in

documents.bank_account_ownership_verification
will not be effective. Your only choice is to provide
documents.bank_account_ownership_verification
directly (refer to apiref) when updating the Account without utilizing a token.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Modifying the 'child' node within a JSON object

Exploring the implementation of d3s Collapsible tree using a custom node hierarchy. My dataset structure deviates from the norm, for example: http://jsfiddle.net/Nszmg/2/ var flare = { "Name": "Example", "members": [ { "BName":"Ja", ...

Leverage advanced type deduction in Key Remapping

I'm puzzled by this code snippet: type Foo<T extends string> = [T] extends [infer Y] ? Y : never // works fine type Test_2<T extends Array<string>> = { [P in T[number] as Foo<"foo">]: undefined } // no issues type ...

Mobile version experiencing issue with Navbar not collapsing

The dropdown navigation bar on the mobile version of my website is not functioning properly. Despite several attempts, I have been unable to figure out a way to make it work effectively. <!DOCTYPE html> <html lang="en"> <head> & ...

Building/Deleting the Vue Component using text search

In my App.vue file, I have the following setup: <template> <div id="app"> <input type="text" v-model="term"> <hello-world text="Button 1" v-if="term === ''"></hello-world> <hello-world ...

Having difficulty retaining the value of a variable following the retrieval of JSON data

For my current project, I am utilizing the highstocks charting library in combination with JQuery. My goal is to create a single chart divided into three sections, each displaying different data sets. To import the data, I have referenced the sample code p ...

Javascript puzzle - I have 99 obstacles

...but a malfunction isn't one. Hey there, I am new to learning so I apologize for the seemingly simple question. I'm experimenting with a theoretical logic statement that would work using javascript. For instance: if (issues == 99) { malfunct ...

Utilizing getServerSideProps in the new app router (app/blah/page.tsx) for maximum functionality

I am a beginner in Next.js and I am currently experimenting with the new app router feature by placing my pages under app/.../page.tsx The code snippet provided works when using the page router (pages/blah.tsx) but encounters issues when used in app/blah/ ...

Tips for accessing other environment variables within the environment.ts file in an Angular project

Currently, I am working on modifying the 'environment.ts' file within an Angular project to include additional properties. The current setup looks like this: export const environment = { production: false, apiUrl: 'http://example.com&ap ...

Experimenting with Chai in JavaScript to test an incorrect argument

Background: I recently delved into JavaScript and have been experimenting with it. It's possible that my question may sound silly, but I am eager to learn. I have developed a function called `getDayOfTheWeekFromDate` which returns the day of the week ...

The command "npm run build" is not running successfully, likely due to npm not being able to interpret ES6 syntax

I am currently developing a web application using Vue.js and Flask. While I can successfully compile the Vue app on my laptop by running npm run build and integrating the static files into my Flask app, I encounter an issue when attempting to do this on a ...

The global variable remains unchanged after the Ajax request is made

I am attempting to utilize AJAX in JavaScript to retrieve two values, use them for calculations globally, and then display the final result. Below are my code snippets. // My calculation functions will be implemented here var value1 = 0; var v ...

Getting the Mongoose Model using Express parameters is a simple process

Is it possible to dynamically fetch a mongoose model based on the req.params.model? Check out this example of a Schema const mongoose = require("mongoose"); const Schema = mongoose.Schema; const SmartSchema = new Schema({ SmartPriority: { type: Stri ...

Is there a way to use dot notation in TypeScript for a string data type?

I'm currently in the process of developing a function API with a specific format: createRoute('customers.view', { customerId: 1 }); // returns `/customers/1` However, I am facing challenges when it comes to typing the first argument. This ...

Is it possible to prevent a webpage from being refreshed?

I need help with an HTML page that puts the worker on pause time which will be subtracted from his/her day job. The issue is that when he/she refreshes the page, the timer starts from the beginning automatically. I want it to continue without resetting. Is ...

Invoking a C# function from JavaScript

I need to implement a way to invoke the method GetAccount from my controller AccountController.cs within my JavaScript factory LoginFactory.js. Here is an example of what I am trying to achieve: AccountController.cs: public Account GetAccount(string userN ...

Implementing jQuery to trigger actions on every other click

Here we have a snippet of code that either posts and updates #arrival or removes it and replaces it with standard text. One click for posting, another click to reset. The issue is that currently it requires two clicks to do the initial posting, followed by ...

Executing a function on the window object in JavaScript

I have come across the following code and am seeking guidance on how to get the last line to function correctly. The API I am using currently employs _view appended as its namespacing convention, but I would prefer to switch to something like arc.view.$f ...

unable to retrieve value from JSON object

It appears that I'm having trouble accessing my object variables, most likely due to a silly mistake on my part. When I console.log my array of objects (pResult), they all look very similar with the first object expanded: [Object, Object, Object, Obj ...

Check to see whether the coordinates fall inside the specified bounding box

I am faced with the task of creating a function that can determine whether a given coordinate c lies within the boundaries of coordinates a and b. All variables in this scenario are of type: type Coordinate = { lat: number; lon: number; }; Initially ...

Converting null to an empty string in Ionic React - A step-by-step guide

Seeking help with submitting a form through an API endpoint. The issue arises with the 'phone' input, which is not a required field and is causing validation errors. Here is the error message received when 'phone' input is left empty: { ...