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')),
                                                  ])
  • 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
Gist
GitHub Gist: instantly share code, notes, and snippets.
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
Was this page helpful?