RevenueCat / purchases-js

MIT License
5 stars 3 forks source link

Show better errors in purchase flow when user is subscribed #133

Closed tonidero closed 4 months ago

tonidero commented 4 months ago

Motivation / Description

When a user tries to purchase a product they are already subscribed to, the backend returns an error, but the SDK wasn't handling that well and displayed a generic error. This modifies that to return a more readable error.

image

Changes introduced

Linear ticket (if any)

Additional comments

tonidero commented 4 months ago

I wasn't sure whether to also change the "Something went wrong"... But I think changing the error description might be enough... Lmk what you think!