- Copy zip file in document root of your server (like /var/www/)
- login to https://business.paytm.com/ and https://dashboard.paytm.com/next/apikeys to find your test api keys.
- Open config_paytm.php file from the lib folder and update the below constant values.
- PAYTM_MERCHANT_KEY – Provided by Paytm
- PAYTM_MERCHANT_MID - Provided by Paytm
- PAYTM_MERCHANT_WEBSITE - Provided by Paytm (Ex: WEBSTAGING for test details)
- files:
- Kart.php – Testing transaction through Paytm gateway.
- pgRedirect.php – This file has the logic of checksum generation and passing all required parameters to Paytm PG.
- callback.php – This file has the logic for processing PG response after the transaction processing.
- search.php – Testing Status Query API
- refund.php - This file has a logic to refund the full or partial amount to the client which had previously made. (Note: This file works on curl method and required live web server. free webserver: https://000webhost.com
You can watch here: https://youtu.be/gvpShOeYd5k
-
getChecksumFromString : For generating the checksum
-
verifychecksum_eFromStr : For verifing the checksum
Example code can be find out here: https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_PHP