© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
14 replies
technocrat

View::make() not working properly inside of wizard

issue: stripe element not get loaded inside of view make

Actually i want to integrate the stripe payments , so i need to generate card token using their js element code (https://codepen.io/Dracarys115/pen/OzjxVg)

- I have to make the card payment inside of a multi step wizard and i have to implement the stripe card element in the second step
- So i have created a different blade for stripe element and placed that using View:make()
   Section::make('Take Payment')
                                                ->schema([
                                                    View::make(('forms.components.stripe-payment')),
                                                ])
   Section::make('Take Payment')
                                                ->schema([
                                                    View::make(('forms.components.stripe-payment')),
                                                ])

- But the problem is stripe js elements are not loading in second step. If i put the view in first step it is showing but when i select or update any value in the form the stripe element not loaded

- i think its also happening with when i am changing the step

is there any way to get the things work properly?

code- https://gist.github.com/ckbsbal/87db36c930c0a4434485d6b9b6567b64
CodePenMarc Schmiedel
Create a Token (Elements [stripe.js V3])
...
Create a Token (Elements [stripe.js V3])
Gist
gist:87db36c930c0a4434485d6b9b6567b64
GitHub Gist: instantly share code, notes, and snippets.
gist:87db36c930c0a4434485d6b9b6567b64
Solution
That’s because it’s re-rendering it which is how livewire works with reactive. So on rendering it would need to then process again
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

datepicker format not working inside wizard
FilamentFFilament / ❓┊help
3y ago
Anyway of accessing $record inside of View::make()->components() ?
FilamentFFilament / ❓┊help
2y ago
Repeater not working when placed inside Flex::make()
FilamentFFilament / ❓┊help
4mo ago
Wizard cancel button not working
FilamentFFilament / ❓┊help
2y ago