unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4.24k stars 502 forks source link

Upgrade account flow is broken due to requiring a payment #2080

Closed perkinsjr closed 1 month ago

perkinsjr commented 1 month ago

Preliminary Checks

Reproduction / Replay Link (Optional)

No response

Issue Summary

When a user wants to upgrade a personal account if they don't have their credit card attached we don't display an error to the user or redirect them to the payment screen.

Steps to Reproduce

  1. In a non workspace account navigate to the billing
  2. click Pro
  3. click switch
  4. See no errors or redirects

The error is TRPCClientError: You do not have a payment method. Please add one before upgrading.

Export-1726070135074

Expected behavior

User should be redirected to the payment screen and then upgraded or we should at minimum display an error to the user that they need to attach a credit card

Other information

No response

Screenshots

No response

Version info

N/A
linear[bot] commented 1 month ago

ENG-1320 Upgrade account flow is broken due to requiring a payment