# LocalPaymentContextInput

Input · GraphQL API

Input fields for local payment context.

## Fields

- `orderId` (`String`): The order id of the eventual Braintree transaction and the order number of the local payment context. Maximum 127 characters.
- `amount` (`MonetaryAmountInput!`) — required: The amount of the local payment.
- `type` (`LocalPaymentMethodType!`) — required: The type of local payment.
- `countryCode` (`CountryCode`): The country code of the local payment. For local payments supported in multiple countries, this value may determine which banks are presented to the customer.
- `locale` (`Language`): The language in which to localize the error-related strings.
- `returnUrl` (`String!`) — required: The URL where the customer is redirected to after the customer approves the payment.
- `cancelUrl` (`String!`) — required: The URL where the customer is redirected to after the customer cancels the payment.
- `merchantAccountId` (`ID`): ID of the PayPal merchant account that will be used when charging this payment method.
- `payerInfo` (`LocalPaymentPayerInfoInput!`) — required: The payer's information.
- `expiryDate` (`Date`): Overrides the default date at which the local payment context will expire. MULTIBANCO is not overridable.

## Used by

- [CreateLocalPaymentContextInput](/braintree/graphql/reference/types/create-local-payment-context-input) — Input; paymentContext

## GraphQL definition

```graphql
input LocalPaymentContextInput {
  orderId: String
  amount: MonetaryAmountInput!
  type: LocalPaymentMethodType!
  countryCode: CountryCode
  locale: Language
  returnUrl: String!
  cancelUrl: String!
  merchantAccountId: ID
  payerInfo: LocalPaymentPayerInfoInput!
  expiryDate: Date
}
```

---

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