Prerequisites
- Claude Code installed (
npm install -g @anthropic-ai/claude-code) - An Anthropic account with API access
- Your RohoPay project repository
Setup
1. Install Claude Code
2. Add RohoPay Context to CLAUDE.md
Create or updateCLAUDE.md in your project root to include RohoPay context:
3. Start Claude Code
CLAUDE.md and have full context about your RohoPay integration.
Using Claude for RohoPay Tasks
Generate a Collection Handler
Debug a Webhook
Review Integration
Generate Tests
Project-Level Settings (.claude/settings.json)
Add RohoPay-specific allowed commands to avoid permission prompts:Claude Code Skills
Install the skills to get quick-access slash commands:Troubleshooting
Claude doesn't know the API endpoints
Claude doesn't know the API endpoints
Make sure
CLAUDE.md is in the root of your working directory when you start claude. Claude Code reads CLAUDE.md automatically at startup.Claude generates wrong phone format
Claude generates wrong phone format
Add this to your CLAUDE.md: “Always use international format for East African phone numbers: remove leading 0, add country code (256 for Uganda, 254 for Kenya).”
Claude uses wrong authentication pattern
Claude uses wrong authentication pattern
Emphasize in CLAUDE.md: “The /api/v1/checkout endpoint takes api_key in the REQUEST BODY, not in the Authorization header. All other /api/v1/* endpoints use Authorization: Bearer header.”