Enabling debug mode
Set the environment variable in your.env file:
What debug mode reveals
WhenAPP_DEBUG=true, OwnPay provides additional information in several areas:
Debug logging
Regardless ofAPP_DEBUG, OwnPay writes logs to storage/logs/. Log levels follow PSR-3:
The
LogSanitizer automatically strips passwords, API keys, encryption keys, and card numbers from all log output. Even in debug mode, these values appear as [REDACTED].Common debugging scenarios
Payment failing silently
- Enable debug mode and attempt the payment again
- Check
storage/logs/for the most recent entries - Look for gateway-specific errors (timeout, auth failure, invalid response)
- Verify the gateway credentials are correct in Gateways > Payment Gateways
Webhook not arriving
- Check Developer > Webhook Delivery Logs for the delivery status and response code
- If status is
failed, review the error message - Test endpoint reachability:
curl -X POST -d '{}' https://your-endpoint.com/webhooks/ownpay - If using Cloudflare or a WAF, check that it is not blocking the request
Plugin not loading
- Check Plugins in the admin panel for the plugin’s status
- If status is
scan_failed, the sandbox rejected the code - check the error for the prohibited function - If status is
inactive, click Activate and check for migration errors - Look at
storage/logs/for plugin boot errors
Blank checkout page
- Enable debug mode - a Twig compilation error will now show the template name and line
- Check that the brand has at least one active gateway
- Verify the brand’s theme CSS does not contain syntax errors
- Check the browser console for CSP violations (indicates a blocked script or style)
Disabling debug mode
When you have finished troubleshooting, disable debug mode:- Go to Settings > Cache in the admin panel
- Click Clear All Caches
Related Pages
- Common Errors - Specific error symptoms and fixes
- FAQ - Answers to common questions
- Performance and Scaling - Resolving performance issues