Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monetization API demo - check filteredPlans.length begore filteredPlans[0].purchaseInfo and show clear message #52

Open
akira71s opened this issue Oct 25, 2024 · 1 comment
Assignees

Comments

@akira71s
Copy link
Contributor

Currently, if there's no order data for a given readerId and orderId, the loader icon will be show up and there forever as there'll be an error at https://github.com/reader-revenue/reader-revenue-demo/blob/main/public/js/monetization-api-buttons.js#L156

image

TODO: check filteredPlans.length and only if it's > 0, access filteredPlans[0].purchaseInfo else show a message that order not found.

@akira71s akira71s self-assigned this Oct 25, 2024
@akira71s
Copy link
Contributor Author

For "query entitlement plan" and "query member data", there'll be a clear & user-friendly message when an error occurs

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant