I am working on the Magento 2 payment gateway. The backend is completed but in frontend we stuck for getting the Magento 2 customer detail and post it to our 3rd party API. Please suggest.


To implement payment gateway on Magento 2, I would recommend you to use the following reference:


This is simple in words and also a best solution to solve your problem.

  • 1
    I already read it it is not working position and it is based on filling card details on magento end i want to make redirection based payment gateway – Ayush Mittal Dec 23 '15 at 11:14
  • @AyushMittal this is exactly what you need, POST the customer data by using hidden html form. Here is the complete reference: junaidbhura.com/… – Fayyaz Khattak Dec 23 '15 at 11:39
  • This solution is not for the magento 2 :( – Ayush Mittal Dec 23 '15 at 11:46
  • @AyushMittal then I would suggest using an API based method which POST customer data using CURL method in PHP. Follow the link as I tested this method personally in different areas of development: excellencemagentoblog.com/blog/2012/05/01/… – Fayyaz Khattak Dec 23 '15 at 11:49
  • @ Fayyaz i already implemented all magento 1.x methods but in magento 2.0 it doesn't works :( you share me doc of magento 1.x not for magento 2.0 – Ayush Mittal Dec 23 '15 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.