🧪 Paymob Payment Test
1. Configuration Check
Verify your Paymob environment variables
2. Test Payment Data
Configure test payment details
100 EGP
3. Test Payment Initiation
Create a payment order and get iframe URL
📋 Testing Instructions
✅ What you can test locally:
- Environment configuration check
- Payment order creation
- Payment token generation
- Iframe URL generation
- Payment UI/UX flow
- Transaction status retrieval
❌ What requires ngrok:
- Webhook callbacks from Paymob
- Automatic payment status updates
- Real-time credit balance updates
- Complete end-to-end payment flow
🌐 Testing with ngrok:
- Start ngrok:
.\ngrok.exe http 3000 - Your webhook URL is already configured in Paymob
- Complete payments will trigger webhook callbacks
- Check browser console and terminal for webhook logs
🧪 Test Cards (Paymob Sandbox):
Success: 4987654321098769
Failure: 4000000000000002
CVV: 123
Expiry: Any future date