# PayPalAppSwitchContextInput

Input · GraphQL API

Input fields for enabling app switch from a merchant app directly to the PayPal app.

## Fields

- `nativeApp` (`PayPalAppSwitchNativeAppInput`): Specifies details when the payment flow originates from a native mobile application.
- `mobileWeb` (`PayPalAppSwitchMobileWebInput`): Specifies details when the payment flow originates from a mobile web browser.

## Used by

- [CreatePayPalBillingAgreementInput](/braintree/graphql/reference/types/create-pay-pal-billing-agreement-input) — Input; appSwitchContext
- [CreatePayPalOneTimePaymentInput](/braintree/graphql/reference/types/create-pay-pal-one-time-payment-input) — Input; appSwitchContext

## GraphQL definition

```graphql
input PayPalAppSwitchContextInput {
  nativeApp: PayPalAppSwitchNativeAppInput
  mobileWeb: PayPalAppSwitchMobileWebInput
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)