# Disable Specific Payment Methods

## Overview

If you want to **block or prevent particular payment methods** from being used to complete a payment, you can explicitly disable them when creating payment sessions.

## How to use

When creating a payment session via the [paymentSessionCreate](/documentation/api/reference/openapi#operation/paymentSessionCreate) endpoint, you can specify the `settings.paymentMethodOptions` field as shown below.

```json Disable Payment Methods - Payload Example
{
  "amount": 54550,
  "currency": "GBP",
  "customerEmail": "test@mail.com",
  "settings": {
    "paymentMethodOptions": {
      "disabled": ["Amex"]
    }
  }
}
```

The Payment Session created above will ensure that Amex payments are disabled when processing the payment. If the customer attempts to pay with Amex, the payment session will be marked as failed.

This feature is not enabled by default. Please contact support if you want to make use of them.

### Next Steps

- To process a payment with specific payment methods disabled, you can follow the steps outlined in the [Initial Setup](/documentation/get_started/process_payments) guide. No special SDK configuration is required.
- Additionally, have a look at the error codes on [this](/documentation/get_started/process_payments/sdk_errors) page to handle scenarios where a customer attempts to use a disabled payment method.