Redirect to a url after action
I'm trying to create an action that will allow a user to create a new Stripe Connect account. In that workflow, an account is created first and then an account link is created and the user is redirected to complete their Stripe onboarding. I'm trying to do this utilizing the the
action
and url
methods from the Action
but I'm immediately redirected to the url when I click the button4 Replies
For reference, the Stripe Connect workflow I described looks something like this:
I want the user to click a button and be presented with a wizard to gather the data that will be necessary for the account creation, then create the account via the Stripe API, then finally redirect the user to the generated account link so they can finalize the onboarding process. The following code is not working but hopefully will paint a picture for what I'm trying to do:
@NolanN Did you mange to get this to work? I have a similar issue, needing to redirect after an action
@Ric Le Poidevin Not really. I've ended up relying on other classes to do the work and then return the relevant URL. This is a different example but this is the approach that I've been using for this sort of thing:
@NolanN if u try:
it does the job?