cancel
Showing results for 
Search instead for 
Did you mean: 

Use app/bootstrap.php to load Magento JS

Use app/bootstrap.php to load Magento JS

Magento 2 Code can be run externally using include ('app/bootstrap.php). After loading , we can create create $objectManager to load different model.

Is it possible to load Magento javascript library/js widget ?

For exemple payment integration is using js library to encrypt sensitive data and I want to run this logic in my external code.

 

Can I run the js library which is implemented as a method renderer js?

Adyen payement example

https://github.com/Adyen/adyen-magento2/blob/6.0.0/view/frontend/web/js/view/payment/method-renderer...

 

Thanks in advance