0

I've integrated a sample payment gateway module into Magento 2. Now I need to add some payment method in JS into a sample payment module. so that when the user clicks on place an order a pop appears.

I have a module like an app/code/Vendor/Module..

10
  • upload code of your js and .html file Commented Oct 30, 2019 at 9:39
  • To which folder path and how to call this method? magento3\app\code\Iostpay\Iostpaymagento\Model magento3\app\code\Iostpay\Iostpaymagento\view
    – Garry
    Commented Oct 30, 2019 at 9:42
  • you can't call model method directly from js file you have to call controller and then you can call the model method Commented Oct 30, 2019 at 9:46
  • Okay, How can I call a class method on click of place order?
    – Garry
    Commented Oct 30, 2019 at 9:53
  • devdocs.magento.com/guides/v2.3/howdoi/checkout/… this will help you Commented Oct 30, 2019 at 9:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.