Stripe Connect – URL for onboarding crashes

Am I misunderstanding how this should work? Or is this just success and now it’s on me to redirect?

The latter. You’ve successfully created the account link when you called the create()

var accountLink = await stripe.accountLinks.create({
            success_url: 'http://localhost:4242?success',
            failure_url: 'http://localhost:4242?failure',
            type: 'custom_account_verification',
            collect: 'eventually_due'

The success_url would be a page on your site you’d want to redirect the user to. Same for the failure_url.

If you dig into the stripe docs we can see an example of their success.html page and it’s just a sample dummy page users are sent to on payment success in this example.


  <title>Thanks for your order!</title>
  <link rel="stylesheet" href="style.css">
      We appreciate your business! If you have any questions, please email
      <a href="mailto:[email protected]">[email protected]</a>.

This again confirms that you can redirect to any page you want on success. Hope that helped!

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top