Problem
The payments/funds-recipient/details-form component will live inside of the funds-recipient component.
It will have the recipient type (business or individual), form fields for both types, and a submit button.
It can send a route action up to the route upon submission. Ideally this action would expect a promise to be returned from the route so that the button can load asynchronously until we get a response.
Depending on the stripeConnectAccount model's recipient_status:
required - show the form fields, including a radio button for selecting individual or legal entity
- if
individual - show the personal information fields
- if
legal_entity - show the personal and legal entity fields (with legal entity fields shown first)
errored - show the fields with any relevant errors as to what's missing; can come from the fields_needed hash and used to match to those fields
Problem
The
payments/funds-recipient/details-formcomponent will live inside of thefunds-recipientcomponent.It will have the recipient type (business or individual), form fields for both types, and a submit button.
It can send a route action up to the route upon submission. Ideally this action would expect a promise to be returned from the route so that the button can load asynchronously until we get a response.
Depending on the
stripeConnectAccountmodel'srecipient_status:required- show the form fields, including a radio button for selecting individual or legal entityindividual- show the personal information fieldslegal_entity- show the personal and legal entity fields (with legal entity fields shown first)errored- show the fields with any relevant errors as to what's missing; can come from thefields_neededhash and used to match to those fields