Skip to content

Update web checkout revenuecat redemption example#37

Merged
dcrawbuck merged 1 commit intomainfrom
cursor/SW-4367-update-web-checkout-revenuecat-redemption-example-19f7
Nov 21, 2025
Merged

Update web checkout revenuecat redemption example#37
dcrawbuck merged 1 commit intomainfrom
cursor/SW-4367-update-web-checkout-revenuecat-redemption-example-19f7

Conversation

@dcrawbuck
Copy link
Collaborator

@dcrawbuck dcrawbuck commented Nov 20, 2025

Update web checkout RevenueCat redemption examples to recommend error handling for network calls.


Linear Issue: SW-4367

Open in Cursor Open in Web


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.

  • Docs: Web Checkout + RevenueCat
    • Android (Kotlin): Use execute().use {}; check response.isSuccessful; throw IOException on non-2xx; log structured success/error; minor import fixes.
    • Expo (TypeScript/React Native): Read response.text(); throw on non-OK with status/body; parse JSON conditionally; improved error logging within Promise.all.
    • Flutter (Dart): Throw on non-200 with status/body; structured success/error logs; added cleaner async/await alternative with helper method and Future.wait.
    • iOS (Swift, shared): Validate HTTPURLResponse; guard 2xx; log non-2xx with body; improved error surfacing within Task/withTaskGroup.
    • Notes: Added guidance emphasizing explicit error handling to enable retries, monitoring, and user messaging.

Written by Cursor Bugbot for commit 36434fd. This will update automatically on new commits. Configure here.

@linear
Copy link

linear bot commented Nov 20, 2025

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

  • update web checkout revenuecat redemption example code to recommend error handling for the network call

repo=superwall/docs

Co-authored-by: duncan <duncan@superwall.com>
@dcrawbuck dcrawbuck force-pushed the cursor/SW-4367-update-web-checkout-revenuecat-redemption-example-19f7 branch from 316cbcf to 36434fd Compare November 20, 2025 20:09
@dcrawbuck dcrawbuck marked this pull request as ready for review November 20, 2025 20:16
@dcrawbuck dcrawbuck added the preview Preview deploy for this PR (Superwall team only) label Nov 20, 2025
@dcrawbuck dcrawbuck merged commit 58a1fb8 into main Nov 21, 2025
8 checks passed
@dcrawbuck dcrawbuck deleted the cursor/SW-4367-update-web-checkout-revenuecat-redemption-example-19f7 branch November 21, 2025 00:17
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Preview deploy for this PR (Superwall team only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants