If the account isn’t fully onboarded, provide UI prompts to allow the user to continue onboarding later. Use the /v1/accounts endpoint to retrieve the user’s account and check for charges_enabled. Handle users that haven’t completed onboardingĪ user that’s redirected to your return_url might not have completed the onboarding process. Your refresh_url should trigger a method on your server to call Account Links again with the same parameters, and redirect the user to the Connect Onboarding flow to create a seamless experience. Your platform is no longer able to access the account.The user already visited the URL (the user refreshed the page or clicked back or forward in the browser).The link is expired (a few minutes went by since the link was created).Stripe redirects your user to the refresh_url in these cases: Calling the Accounts API and inspecting the returned object.After a user is redirected to your return_url, check the state of the details_submitted parameter on their account by doing either of the following: This only means the flow was entered and exited properly. This doesn’t mean that all information has been collected or that there are no outstanding requirements on the account. Stripe issues a redirect to this URL when the user completes the Connect Onboarding flow. Be sure to swap testing URLs for HTTPS URLs before going live. You can use HTTP for your return_url and refresh_url while in test mode (for example, to test with localhost), but live mode only accepts HTTPS.
0 Comments
Leave a Reply. |