1
0
Files
PayPal-PHP-Server-SDK/doc/models/app-switch-context.md
2025-11-06 20:07:39 +00:00

1.0 KiB

App Switch Context

Merchant provided details of the native app or mobile web browser to facilitate buyer's app switch to the PayPal consumer app.

Structure

AppSwitchContext

Fields

Name Type Tags Description Getter Setter
nativeApp ?NativeAppContext Optional Merchant provided, buyer's native app preferences to app switch to the PayPal consumer app. getNativeApp(): ?NativeAppContext setNativeApp(?NativeAppContext nativeApp): void
mobileWeb ?MobileWebContext Optional Buyer's mobile web browser context to app switch to the PayPal consumer app. getMobileWeb(): ?MobileWebContext setMobileWeb(?MobileWebContext mobileWeb): void

Example (as JSON)

{
  "native_app": {
    "os_type": "IOS",
    "os_version": "os_version0"
  },
  "mobile_web": {
    "return_flow": "AUTO",
    "buyer_user_agent": "buyer_user_agent8"
  }
}