bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

Fillings that are in the state of processing payments go back in the TODO state with the Resume Payment button enabled while creating any Registration filing. #23636

Open riyazuddinsyed opened 2 weeks ago

riyazuddinsyed commented 2 weeks ago

Describe the bug in the current situation When the user submits an IA/Firm filing and makes a payment, while the payment is still processing, the filing is returned to the "To Do" list with the "Resume Payment" button enabled.

Steps to reproduce the behavior:

  1. Go to 'https://test.business.bcregistry.gov.bc.ca/'
  2. Start an IA/Registration
  3. Complete the payment
  4. See error

Screenshots/ Visual Reference/ Source

Private Zenhub Video

severinbeauvais commented 2 weeks ago

The bug is that the Resume Payment button should not display while the retry spinner is being displayed. No item actions should be possible at this time.

The spinner shows while the app is trying, in the background, to fetch the updated filing state. If an updated state is found, the dashboard reloads to show the new state. If no updated state is found (after 5 seconds) then the spinner disappears and the Resume Payment button should display.