Hello, can anyone guide me how can I implement custom payment integration method in Magento 2?
I want to implement a Tiybr payment integration method.
Hi @jhon_doe2
Welcome to the magento community forum.
Yes - you can create a custom payment method and integration with magento 2 - magento itself have article on devdocs for how to add payment method also there are some external articles which explains the actual methods how to integrate custom payment method , below i am sharing the links for the same.
https://devdocs.magento.com/guides/v2.2/howdoi/checkout/checkout_payment.html
https://www.classyllama.com/blog/how-to-create-payment-method-magento-2
https://www.mageplaza.com/devdocs/magento-2-create-payment-method/
Refer the articles based on that create a custom module and implement it for the same.
Hope it helps !
I have documentation of tiybr payment integration method so where I can add those API to connect payment method with tiybr, please help
Hi @jhon_doe2
Yes , I understand and that's the reason i have posted this link - https://www.classyllama.com/blog/how-to-create-payment-method-magento-2
Here you need to create a custom module first and then based on your tiybr API - you need to call those API in Model file of custom module.
So create a custom module based on the above link and then one by one calls the API in model file - they have also showcased example API calls.
Hope it helps
Yes basically I have a code of PHP API so need to integrate into that module.