Conversation
SW-4367 [docs] update web checkout revenuecat redemption example code to recommend error handling for the network call
page(s): ex https://superwall.com/docs/ios/guides/web-checkout/using-revenuecat (and in all other sdks) Changes Needed
repo=superwall/docs |
Co-authored-by: duncan <duncan@superwall.com>
316cbcf to
36434fd
Compare
dcrawbuck
added a commit
that referenced
this pull request
Nov 26, 2025
* feat: upgrade to next/fumadocs 16 * feat: add pylon chat widget (#21) * feat: add pylon chat widget * fix: pylon script can assume auth is only valid in dev * fix: script for pylon widget * feat: support page based on log in state * Does a bunch of image optimziation * Tweaks * Revert "Does a bunch of image optimziation" * fix: add missing env vars * Update docs to remove test event references (#30) * docs(integrations): remove test event references, require sandbox events for testing Remove all references to sending/triggering a "test" event across integrations and webhooks. Updated guidance to validate via real sandbox transactions (TestFlight sandbox Apple ID, Play Store test accounts, Stripe Test Mode). Clarifies that StoreKit configuration files do not produce webhooks. Refs SW-4140. * feat: Add initial project dependencies This commit adds the initial set of dependencies required for the project, including React, Next.js, and various utility and UI libraries. Co-authored-by: duncan <duncan@superwall.com> * Delete package-lock.json --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> * Webhooks verify * Adds stripe customer email prefill docs * Create webhooks-verify.mdx * Purchasing guide * Account manage stuff * Update * feat: update revenuecta exmaple * Update paywall-editor-styling-elements.mdx * Adds more web checkout context * Slight adjustments to android revenue tracking setup * Adds light dark note * Adds direct sdk reference tools * Adds paywallOverrides docs * feat: remove duplicate rev cat purhcase controller (#35) * fix-links (#36) * Image for bottom sheet * chore: exclude scripts directory from TypeScript compilation * Guide * Images * Update web checkout revenuecat redemption example (#37) Co-authored-by: Cursor Agent <cursoragent@cursor.com> * Create CONTRIBUTING.md * Update README.md * feat: add edit on github button * feat: react native docs (#41) * feat: Add passIdentifiersToPlayStore option to SuperwallOptions (#39) Co-authored-by: Cursor Agent <cursoragent@cursor.com> * feat: upgrade to next/fumadocs 16 * fix: home page redirect, rn callout * fix: dropdown selector * fix: opennext build isuse * feat: build script improvements * fix: syntax, sdk docs link --------- Co-authored-by: Brian Anglin <brianranglin@gmail.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Jordan Morgan <the_morgan_fam@yahoo.com> Co-authored-by: Yusuf Tör <3296904+yusuftor@users.noreply.github.com> Co-authored-by: Makisuo <minetoaster12@gmail.com> Co-authored-by: Makisuo <31933546+Makisuo@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update web checkout RevenueCat redemption examples to recommend error handling for network calls.
Linear Issue: SW-4367
Note
Tightens RevenueCat redemption examples across Android, Expo, Flutter, and Swift to check HTTP status codes, surface network errors, and guide retries/UX with added notes.
execute().use {}; checkresponse.isSuccessful; throwIOExceptionon non-2xx; log structured success/error; minor import fixes.response.text(); throw on non-OK with status/body; parse JSON conditionally; improved error logging withinPromise.all.Future.wait.HTTPURLResponse; guard 2xx; log non-2xx with body; improved error surfacing withinTask/withTaskGroup.Written by Cursor Bugbot for commit 36434fd. This will update automatically on new commits. Configure here.