0

I am integrating a custom payment gateway module in Magento 2. How can I use JS/ajax on the checkout page on click of place order trigger some js event?

As I need to pop-up a modal on click of place order and prevent the submission from creating the order and check for payment response with js and then submit the checkout form with payment response.

Any Idea how this is possible ?

2
  • have you checked the official documentation devdocs.magento.com/guides/v2.3/payments-integrations/…?
    – joni jones
    Commented Oct 30, 2019 at 18:42
  • I am new to Magento 2and Yes, I've checked this documentation also. but things are not clear. I have a module like app/code/Vendor/Module I have built the module from .mage2gen.com
    – Garry
    Commented Oct 31, 2019 at 4:31

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.