I want to create PAYU API for Checksum generation at the Magento backend and send the Hash key value to Mobile Apps.

1 Answer 1


You dont need to create an API from scratch for PAY U , you need use to their existing PHP SDK which helps to connect to their REST API.



  1. In Magento create a module with rest api service classes (under Vendor/Module/Api directory) which should be properly configured in Vendor/Module/etc/webapi.xml and Vendor/Module/etc/di.xml.

  2. Create the Model classes which use the PayU PHP SDK to connect with their API and do what you want to do.

Refer this article for information on how to create a REST API in Magento 2

Hope this helps !


PayU has Magento2 module which you can checkout


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.