Testing Your Integration¶
This guide will help you test your UnelmaPay integration before going live.
Testing Environment¶
Development Environment¶
- URL:
https://dev.unelmapay.com/sci/form - Purpose: Initial testing and development
- Features:
- Test payments (no real money involved)
- Immediate feedback
- Test merchant accounts available
Testing IPN Callbacks¶
- Set up your IPN handler
- Ensure it's accessible via HTTPS
- Enable detailed logging
-
Handle duplicate notifications
-
Test IPN Endpoint
Common Test Scenarios¶
Successful Payment¶
- Submit payment form with valid test card
- Verify IPN received with status=completed
- Check order status in your system
Failed Payment¶
- Use failing test card (4000 0000 0000 0002)
- Verify proper error handling
- Check IPN for failure notification
IPN Verification¶
- Send test IPN to your endpoint
- Verify hash calculation
- Check database updates
Debugging Tips¶
-
Check Logs
-
Verify Hash
-
Test Locally
- Use ngrok for local testing
- Forward requests to localhost
- Inspect incoming requests
Going Live¶
Before going live: 1. Test all payment scenarios 2. Verify IPN handling 3. Remove test credentials 4. Enable production API keys 5. Monitor transactions closely