PPE Integration Extension
Version: 2.1.6
Publisher: PPe Developer Tools
Overview
The PPE extension streamlines the integration of PhonePe's payment services into your applications. Generate production-ready integration code instantly within Visual Studio Code for multiple programming languages and platforms.
Features
Instant Code Generation
Generate complete PPE integration code with a single command. All generated code includes OAuth 2.0 authentication, payment processing, status tracking, and error handling.
Multi-Language Support
- Backend Languages: Java, Python, Node.js, PHP, .NET
- Mobile Platforms: Android, iOS, Flutter, React Native, Ionic
Command Palette Integration
Four essential commands accessible via VS Code Command Palette:
- API Integration - Insert integration code at cursor
- SDK Documentation - Browse language-specific SDK documentation
- Postman Collection - Access API testing tools
- Developer Documentation - Open official PPe documentation
AI-Powered Assistant
Leverage GitHub Copilot integration for intelligent code generation with contextual commands through the @phonepe chat participant.
Installation
- Open Visual Studio Code
- Navigate to Extensions (
Cmd+Shift+X on macOS, Ctrl+Shift+X on Windows/Linux)
- Search for "PPE Suite"
- Click Install
Usage
Command Palette
- Open a code file in your preferred language (
.java, .py, .js, .php, or .cs)
- Position your cursor where you want to insert the integration code
- Open Command Palette (
Cmd+Shift+P / Ctrl+Shift+P)
- Type: "PhonePe: API Integration"
- The code will be inserted automatically at your cursor position
- Replace the placeholder values in the generated code:
YOUR_CLIENT_ID - Your Client ID
YOUR_CLIENT_SECRET - Your Client Secret
AI Chat Integration
Use GitHub Copilot Chat with simplified commands:
@phonepe /generate sdk java production
@phonepe /generate api nodejs uat
@phonepe /docs
Available Commands:
/generate <sdk|api> <language> <environment> - Generate integration code
/docs - Open PhonePe Developer Documentation
Generated Code Features
Every code snippet includes:
- Authentication: OAuth 2.0 token management
- Payment Creation: Complete payment initiation flow
- Status Checking: Real-time transaction monitoring
- Refund Processing: Payment reversal handling
- Error Handling: Comprehensive exception management
- Environment Configuration: UAT and Production ready
Environment Configuration
UAT/Sandbox (Testing)
Base URL: https://api-preprod.phonepe.com/apis/pg-sandbox/
Use for development and testing purposes.
Production (Live)
Base URL: https://api.phonepe.com/apis/pg/
Use for live transaction processing.
Available Commands
| Command |
Description |
PhonePe: API Integration |
Insert integration code at cursor position |
PhonePe: Get SDK Documentation |
Open SDK documentation by language |
PhonePe: Open Postman Collection |
Access PhonePe API Postman collection |
PhonePe: Open Documentation |
Open PhonePe Developer Portal |
System Requirements
- VS Code: Version 1.90.0 or higher
- Optional: GitHub Copilot for AI-powered features
Support & Documentation
Troubleshooting
Code Not Inserting
Issue: Command executes but no code appears
Solution: Ensure you have opened a file with a supported extension (.java, .py, .js, .php, .cs)
Language Detection Issues
Issue: Wrong language code generated
Solution: Verify your file extension matches the intended programming language
Environment Configuration
Issue: Need to switch between UAT and Production
Solution: Manually update the base URL in the generated code
Release Notes
Version 3.0.2
- Direct code insertion without credential prompts
- Improved command execution performance
- Enhanced error handling and validation
- Updated API version to 1
License
MIT License
Copyright (c) 2025 PhonePe
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
Contributing
We welcome contributions to improve this extension. Please submit issues and pull requests through our official repository.
Developed by PhonePe Developer Tools Team
Simplifying payment integration for developers worldwide