You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to set a custom view when rendering redirectForm? #352
I would like to know how I can set a different custom view when the redirectForm is being rendered.
I know that the form itself can be edited, but I want to reuse the default redirectForm in multiple places as it is. However, for one specific payment type (my second payment method), I want to use a completely different custom form.
Is there a way to configure or override the view before the redirectForm is rendered, so that I can dynamically choose which view to display based on the payment type?
Activity
khanzadimahdi commentedon Oct 6, 2026
pay()gives you a redirect form object. You can read its data and use your own view for that one payment:For the other payments keep using
->render(). Closing, reopen if it doesn't work for you.