You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add embedded checkout support to CheckoutWebViewController and CheckoutDelegate
This commit integrates embedded checkout functionality into the view controller
layer and delegate protocol while maintaining backward compatibility.
CheckoutWebViewController changes:
- Added CheckoutOptions parameter to initializer for embedded checkout configuration
- Implemented embedded checkout delegate methods:
- checkoutViewDidChangeState() for state change events
- checkoutViewDidComplete() for completion with embedded payload
- checkoutViewDidFail() for error handling with embedded error payloads
- checkoutViewDidEmitWebPixelEvent() for embedded web pixel events
- Enhanced error recovery logic for embedded checkout error types
CheckoutDelegate changes:
- Extended protocol with embedded checkout event methods
- Added default implementations for all new methods to maintain compatibility
- Documented embedded checkout methods with Schema 2025-04 specification
All changes are backward compatible - existing implementations continue
to work unchanged while new embedded checkout functionality is available
for apps that need it.
0 commit comments