Bug 72 - payment subject switch from company to voucher does not reset payment_status
Summary: payment subject switch from company to voucher does not reset payment_status
Status: CONFIRMED
Alias: None
Product: RTWBB frontend app
Classification: Unclassified
Component: Challenge registration process (show other bugs)
Version: unspecified
Hardware: Macintosh Mac OS
: --- enhancement
Assignee: Admin
URL:
Depends on:
Blocks:
 
Reported: 2025-01-20 12:25 CET by Šimon Macek
Modified: 2025-01-20 12:25 CET (History)
0 users

See Also:
Web browser: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Šimon Macek 2025-01-20 12:25:14 CET
Challenge registration

- Select payment "company"
- Select organization, subsidiary and team to save company payment
- Refresh page and change payment type from "company" to "voucher"
- Complete the rest of the registration
- Registration cannot be completed

---

Debug:

- submitting "discount_coupon" field does not changed returned "payment_status"
- "payment_status" value = "waiting" and so the registration-completed check returns "false"

register-challenge GET request returns

```
"discount_coupon": "ZD-CZBGSD",
"payment_subject": "voucher",
"payment_type": "fc",
"payment_status": "waiting",
"payment_amount": 390,
"payment_category": "entry_fee"
```

---

Proposed solution:
change "payment_status" to done when "discount_coupon" with 100% discount is submitted