🔒 Transaction Error Testing Page

This is a private testing page. URL: /test-tx-errors-29f84a

1. Select Error Scenario to Test

2. Simulate Transaction Request

150 kr

⚠️ Please select an error scenario above first

Testing Instructions

  1. Select an error scenario from the list above
  2. Enter any phone number (can be fake - 0701234567)
  3. Click the payment button to trigger the mock error
  4. The error dialog will appear as it would in production
  5. Test on both desktop and mobile to see modal vs bottom slider
  6. Close the dialog and try different scenarios

Current Test Setup:

  • Selected Scenario: None
  • Tickets: 3
  • Amount: 150 kr
  • Phone: Not entered

Technical Details

What this page does:

  • Mocks the doPayment API call with error responses
  • Uses the actual ErrorContext.handleError() function
  • Displays the real UnifiedErrorDialog component
  • Shows desktop modal or mobile bottom slider based on viewport
  • Includes all contextual error data from backend API structure