Order Errors
When students purchase packages through WooCommerce, orders are automatically fulfilled to create grants. Sometimes this process fails. This guide covers how to identify and resolve order errors.
What Are Order Errors?
Order errors occur when Matchpal cannot automatically process a WooCommerce order:
- The order was received
- But grant creation failed
- Manual intervention required
How Orders Are Fulfilled
Normal flow:
- Student purchases package in WooCommerce
- WooCommerce sends webhook to Matchpal
- Matchpal identifies customer and product
- Grant created for the student
- Student can begin using services
When this fails, an order_fulfillment_error is recorded.
Finding Order Errors
Admins can view order errors:
- Navigate to system logs or order errors section
- See list of failed fulfillments
- Review error details for each
Common Error Causes
Unknown Product
Error: Product not recognized
Cause: WooCommerce product ID doesn't map to a Matchpal package.
Resolution:
- Identify the WooCommerce product
- Create mapping to Matchpal package
- Manually create grant for affected student
- Reprocess or mark error resolved
Customer Not Found
Error: Cannot identify customer
Cause: Email from order doesn't match any Matchpal user.
Resolution:
- Find order email address
- Create student account if new
- Or link to existing account
- Manually create grant
- Mark error resolved
Invalid Order Data
Error: Required order data missing
Cause: Webhook payload incomplete or malformed.
Resolution:
- Check WooCommerce order directly
- Extract needed information manually
- Create grant manually
- Investigate webhook configuration
Duplicate Order
Error: Order already processed
Cause: Webhook received multiple times.
Resolution:
- Verify grant was created
- If already fulfilled, no action needed
- Mark duplicate error as resolved
Network/Connection Error
Error: Failed to connect or timeout
Cause: Temporary connectivity issue.
Resolution:
- Check if order was actually processed
- If not, retry processing
- If persists, investigate connectivity
Resolving Order Errors
General Process
- Identify - Find the error in logs
- Diagnose - Understand what went wrong
- Fix - Resolve the underlying issue
- Fulfill - Manually create the grant
- Close - Mark error as resolved
Manual Grant Creation
When automatic fulfillment failed:
- Identify student from order email
- Create account if needed
- Navigate to student's grants
- Add grant matching purchased package
- Reference order number in notes
Preventing Future Errors
Product Mapping:
- Ensure all WooCommerce products are mapped
- Update mappings when products change
- Test new products before launch
Customer Handling:
- Clear instructions for customers on email
- Account creation process documented
- Handle edge cases gracefully
Monitoring
Regular Checks
- Review order errors daily or weekly
- Don't let errors accumulate
- Resolve promptly for good customer experience
Alerts
Configure alerts for:
- New order errors
- High error rates
- Repeated error types
Error Details
Each error record includes:
| Field | Description |
|---|---|
| Order ID | WooCommerce order reference |
| Customer Email | From the order |
| Product ID | What was purchased |
| Error Type | Category of failure |
| Error Message | Specific details |
| Timestamp | When error occurred |
| Status | Pending, resolved, etc. |
Escalation
If you can't resolve an error:
- Document what you've tried
- Gather all relevant details
- Contact technical support
- May require developer investigation
Related Documentation
- Integrations - WooCommerce setup
- Billing - Grant management
- Common Issues - Other troubleshooting