# createPayPalOneTimePayment

Mutation · GraphQL API

Set up a PayPal One-Time Payment for approval by a PayPal user. See [documentation](https://developer.paypal.com/braintree/docs/guides/paypal/checkout-with-paypal) for more information. Your account must be enabled for this feature.

## Authentication

- CLIENT
- SERVER

## Input

- `input` (`CreatePayPalOneTimePaymentInput!`) — required

## Returns [CreatePayPalOneTimePaymentPayload](/braintree/graphql/reference/types/create-pay-pal-one-time-payment-payload)

Top-level fields returned from setting up a PayPal One-Time Payment.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.
- `approvalUrl` (`URL`): The URL for getting user approval of the PayPal payment.
- `paymentId` (`String`): The PayPal payment ID / order ID.
- `launchPayPalApp` (`Boolean`): Indicates app switch eligibility.

## Examples

### Create PayPal one time payment

Top-level input field for creating a PayPal One-Time Payment.

```graphql
mutation createPayPalOneTimePayment($input: CreatePayPalOneTimePaymentInput!) {
  createPayPalOneTimePayment(input: $input) {
    clientMutationId
    approvalUrl
    paymentId
    launchPayPalApp
  }
}
```

---

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