{"id":20492790,"url":"https://github.com/kartikmehta8/lamp-4","last_synced_at":"2026-06-06T10:32:12.366Z","repository":{"id":237458856,"uuid":"739689035","full_name":"kartikmehta8/LAMP-4","owner":"kartikmehta8","description":"This PHP project integrates Paytm's Payment Gateway, enabling secure online transactions with features like dynamic order ID generation, transaction status checks, and checksum verification for data integrity.","archived":false,"fork":false,"pushed_at":"2024-01-06T08:29:36.000Z","size":402,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T05:55:22.064Z","etag":null,"topics":["payment-gateway","paytm","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kartikmehta8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-06T08:29:26.000Z","updated_at":"2024-01-06T08:30:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"07c10b91-da7f-47fc-b908-05f0eed80a30","html_url":"https://github.com/kartikmehta8/LAMP-4","commit_stats":null,"previous_names":["kartikmehta8/lamp-4"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikmehta8%2FLAMP-4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikmehta8%2FLAMP-4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikmehta8%2FLAMP-4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikmehta8%2FLAMP-4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kartikmehta8","download_url":"https://codeload.github.com/kartikmehta8/LAMP-4/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242074074,"owners_count":20067972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["payment-gateway","paytm","php"],"created_at":"2024-11-15T17:30:52.003Z","updated_at":"2025-03-05T17:42:35.486Z","avatar_url":"https://github.com/kartikmehta8.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paytm Payment Gateway Integration in PHP\n\nThis repository contains the PHP code for integrating Paytm Payment Gateway into a web application. The integration allows for initiating transactions, checking their status, and handling the response from Paytm after the transaction is processed.\n\n## Tech Stack\n\n- **PHP**: Server-side scripting language used for backend logic.\n- **HTML**: Used for structuring the web pages.\n- **Paytm Payment Gateway API**: For handling payments.\n\n## Pages and Functionality\n\n### 1. `TxnTest.php`\n\nThis is the initial page where the user inputs transaction details such as order ID, customer ID, industry type, channel, and transaction amount.\n\n- **Order ID**: Generated dynamically for each transaction.\n- **Customer ID**: Predefined as 'CUST001'.\n- **Industry Type ID**: Set as 'Retail'.\n- **Channel**: Set as 'WEB'.\n- **Transaction Amount**: User input.\n\n![Transaction Test Page](images/testtxn.png)\n\n### 2. `pgRedirect.php`\n\nThis page is responsible for sending transaction data to Paytm's server. It generates a checksum hash to ensure data integrity.\n\n- **Checksum Generation**: For security, a checksum hash is generated and sent along with the transaction data.\n\n![Redirect Page](images/payment.png)\n\n### 3. `pgResponse.php`\n\nThis page handles the response from Paytm after the transaction processing.\n\n- **Checksum Verification**: It verifies the checksum received from Paytm.\n- **Transaction Status**: Displays whether the transaction was successful or failed.\n\n![Response Page](images/success.png)\n\n### 4. `TxnStatus.php`\n\nThis page allows the user to query the status of a transaction by providing the order ID.\n\n- **Order ID Input**: User can input the order ID to check the transaction status.\n- **Transaction Status**: Shows the detailed status of the transaction.\n\n## How to Use\n\n1. Clone the repository to your local server environment.\n2. Configure the `config_paytm.php` with your Paytm merchant details.\n3. Access `TxnTest.php` to start a new transaction.\n4. Use `TxnStatus.php` to check the status of a transaction.\n\n## Security and Data Integrity\n\n- **Checksum Hash**: Ensures that the data sent to and received from Paytm's server is not tampered with.\n- **HTTPS Protocol**: It is recommended to use HTTPS to ensure secure data transmission.\n\n## Requirements\n\n- PHP 7 or higher.\n- Paytm Merchant account for API keys and testing.\n\n## Installation\n\n1. Download or clone the repository.\n2. Place it in your server's document root.\n3. Configure the Paytm API keys in `config_paytm.php`.\n4. Access the pages via a web browser.\n\n---\n\nFor more details on Paytm's API and parameters, visit [Paytm Developer Documentation](https://developer.paytm.com/docs).\n\n**Note**: This is a basic implementation and should be used as a starting point. Ensure to follow security best practices for production deployment.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikmehta8%2Flamp-4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkartikmehta8%2Flamp-4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikmehta8%2Flamp-4/lists"}