NOTE: This issue is not suitable for new contributors.
Describe the bug
When both payment_requires_internet and captive_portal_sync_auth are enabled, the payment flow does not work properly. Users are not taken to the payment page as expected after captive portal login.
Steps To Reproduce
- Enable
payment_requires_internet and captive_portal_sync_auth in the organization configuration.
- Register with a paid plan.
- Click "Proceed with payment".
Expected behavior
On clicking on "Proceed with payment", the application should perform captive portal login to provide internet access to the user and take the user to the /payment/process page
Actual behavior
On clicking on "Proceed with payment", the status component performs captive portal login and redirects the user to /payment/draft