Skip to content

[HC-2110] Document running the checkout inside mobile WebViews (staging) - #172

Open
spreedlyaniket wants to merge 2 commits into
stagingfrom
docs/HC-2110-webview-support-staging
Open

spreedlyaniket wants to merge 2 commits into
stagingfrom
docs/HC-2110-webview-support-staging

Conversation

@spreedlyaniket

@spreedlyaniket spreedlyaniket commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Document running the checkout inside mobile WebViews

Docs only. Answers whether the Web SDK, Google Pay and 3DS2 work when a checkout runs inside an iOS WKWebView, Android WebView or hybrid shell, and what the native app has to do.


Ticket Number

Jira: HC-2110


Description

Summary

  • New docs/webview/INTEGRATION_GUIDE.md: a short hint page for merchants, no native code.
    • Support position: not tested or certified in WebViews; native and wrapper apps should use the native Spreedly SDKs.
    • Card form: keep JavaScript on, don't block iframe navigation.
    • Google Pay (1.11.0+): the app has to turn it on; links to Google's Android and iOS WebView guides. Until then no button, googlePayUnavailable fires, card form still works.
    • 3DS2: third-party cookies, iframe navigation, 3DS1 return URL back into the app, no Braintree 'popup'.
    • PPCP: 'modal' unsupported; popup modes need window handling or 'redirect'.
  • Links from the Google Pay (Limitations), 3DS (overview, global and gateway-specific troubleshooting, Redirects, Braintree) and tokenization overview docs, README and CHANGELOG [Unreleased].
  • docs/testing/TROUBLESHOOTING_GUIDE.md: Mobile WebViews section. Same content as the SDK repo's docs (spreedly/checkout-web-sdk#173).
  • Apple Pay is deliberately left out until it ships in the Web SDK and the WebView questions are answered.

Terraform Plan

N/A (docs only).


Documentation

References

Changelog

  • This change requires a changelog.

Manual Testing

Validation Performed

  • Claims checked against code: Google Pay isReadyToPay() gate (packages/core/src/google-pay/google-pay.ts), 3DS iframes and window.location.href 3DS1 fallback (packages/core/src/three-ds/flows/redirect.ts), Braintree 'popup' (braintree-integration.ts), PPCP modal rejection (ppcp.ts).
  • Google's WebView guides linked instead of copying their native setup.
  • All relative links and anchors in changed files resolve. Only .md files change, additions only.

Supporting Evidence

Not run inside a real WebView app; the guide says so.


Post-deployment Monitoring and Testing

Verification Steps

  1. Open docs/webview/INTEGRATION_GUIDE.md on GitHub and follow the links from the Google Pay and 3DS guides.

Rollback Plan

Rollback Steps

  1. Revert this commit.

Risks or Considerations

None; no code or build changes.


PR Review Notes

Areas to focus on:

  • The support wording ("not tested or certified", native SDKs recommended) matches what we told customers in Slack.

🤖 Generated with Claude Code

spreedlyaniket and others added 2 commits November 27, 2026 13:50
Add docs/webview/INTEGRATION_GUIDE.md: support position (not tested or
certified, native SDKs recommended), card form, Google Pay (Android
webkit 1.14.0+ / setPaymentRequestEnabled / <queries>, iOS
GOOGLE_PAY_SUPPORTED + popup handling) and 3DS2 (third-party cookies,
sub-frame navigation, 3DS1 return URL) requirements. Link it from the
Google Pay, 3DS and tokenization docs, README and CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the native code snippets and step-by-step Android/iOS setup; link to
Google's WebView guides instead. Shorten the changelog, README and
troubleshooting entries to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant