# BUG-41: Declined card empties the cart on Safari (iPhone)

> Free bug report template from TestPlum (testplum.com/templates/bug-report/).
> One problem per report. Replace the example text; keep every heading. A developer who has never seen the
> problem should be able to reproduce it from this page alone.

| | |
|---|---|
| **Severity** | Major (Blocker / Critical / Major / Minor / Trivial) |
| **Priority** | High (Critical / High / Medium / Low) |
| **Status** | New |
| **Found in build** | 2.4.0-rc1 |
| **Environment** | Staging, Safari on iPhone (iOS 18), payment provider in test mode |
| **Frequency** | Every time (5 of 5 tries on Safari on iPhone; 0 of 5 on Chrome on desktop) |
| **Found by test** | CHK-2 Declined card shows an error and keeps the cart |
| **Requirement** | REQ-13 A declined payment shows a clear error and keeps the cart |
| **Reported by** | [Name], QA engineer |
| **Reported on** | 2026-11-18 |
| **Assigned to** | [Name] |

## Summary

After a declined payment on Safari on iPhone, the error message is correct but the cart is empty, so the customer has
to find and add every item again.

## Preconditions

- Signed in on staging as a test customer with no saved card.
- The cart holds two items: Linen shirt (size M) and Canvas tote.

## Steps to reproduce

1. Select **Checkout**.
2. Enter the payment provider's published decline test card, any future expiry date and any CVC.
3. Select **Pay now**.
4. Select **Back to cart**.

## Expected result

After step 3, "Your card was declined" appears next to the card field. After step 4, both items are still in the cart.

## Actual result

After step 3, "Your card was declined" appears as expected. After step 4, the cart is empty. No order is created and
nothing is charged.

## Evidence

- Screen recording of steps 1 to 4: [link]
- Browser console at step 4: `[link to the log]`
- Time of the last try: 2026-11-18 10:42 UTC, so the logs can be matched.

## Notes

- Does not happen on Chrome on desktop or Chrome on Android.
- Started with build 2.4.0-rc1. Build 2.3.2 keeps the cart.
