# MD for: https://www.mercadopago.com.br/developers/pt/docs/checkout-pro/additional-settings/payment-methods.md \# Configure other payment methods By default, all payment methods are available in Checkout Pro. This setting can be customized through the payment preference, allowing you to remove unwanted options. > WARNING > > The payment method \*\*Cash in account\*\* cannot be excluded. The following table lists the available attributes in the payment preferences and the application of each one to configure them according to the business needs. | Preference Attribute | Description | Possible values | | --- | --- | --- | | \`payment\_methods\` | Class that describes the attributes and methods of the Checkout Pro payment methods. | - | | \`excluded\_payment\_types\` | Allows you to exclude unwanted payment method types, such as offline payments, credit or debit cards, among others. You can obtain a detailed list of all available payment types for integration by sending a \*\*GET\*\* request with your :toolTipComponent\[Access Token\]{content="Private key of the application created in Mercado Pago, which is used in the \_backend\_. You can access it through \*Your integrations > Integration data > Test > Test credentials\* or \*Production > Production credentials\*."} to the endpoint :TagComponent{tag="API" text="/v1/payment\_methods" href="/developers/en/reference/online-payments/checkout-pro/payment-methods/get"}. | \`ticket\` | | \`excluded\_payment\_methods\` | Allows you to exclude specific credit and debit card brands, such as Visa, Mastercard, American Express, among others. You can obtain a detailed list of all available payment methods for integration by sending a \*\*GET\*\* request with your :toolTipComponent\[Access Token\]{content="Private key of the application created in Mercado Pago, which is used in the \_backend\_. You can access it through \*Your integrations > Integration data > Test > Test credentials\* or \*Production > Production credentials\*."} to the endpoint :TagComponent{tag="API" text="/v1/payment\_methods" href="/developers/en/reference/online-payments/checkout-pro/payment-methods/get"}. | \`master\` | | \`installments\` | Defines the maximum number of installments that can be offered to the buyer. | \`10\` | With this information, use one of the available SDKs to configure the payment methods you want to exclude. * [csharp ](#editor%5F6) * [curl ](#editor%5F1) * [java ](#editor%5F4) * [node ](#editor%5F3) * [php ](#editor%5F2) * [python ](#editor%5F7) * [ruby ](#editor%5F5) curl php node java ruby csharp python ``` "payment_methods": { "excluded_payment_methods": [ { "id": "master" } ], "excluded_payment_types": [ { "id": "ticket" } ] } ``` Copiar ``` payment_methods = array( "excluded_payment_methods" => array( array("id" => "master") ), "excluded_payment_types" => array( array("id" => "ticket") ), "installments" => 12 ); // ... ?> ``` Copiar ``` const preference = new Preference(client); preference.create({ body: { // ... payment_methods: { excluded_payment_methods: [ { id: "master" } ], excluded_payment_types: [ { id: "ticket" } ], installments: 12 } } }) // ... ``` Copiar ``` PreferenceClient client = new PreferenceClient(); //... List excludedPaymentMethods = new ArrayList<>(); excludedPaymentMethods.add(PreferencePaymentMethodRequest.builder().id("master").build()); excludedPaymentMethods.add(PreferencePaymentMethodRequest.builder().id("amex").build()); List excludedPaymentTypes = new ArrayList<>(); excludedPaymentTypes.add(PreferencePaymentTypeRequest.builder().id("ticket").build()); PreferencePaymentMethodsRequest paymentMethods = PreferencePaymentMethodsRequest.builder() .excludedPaymentMethods(excludedPaymentMethods) .excludedPaymentTypes(excludedPaymentTypes) .installments(12) .build(); PreferenceRequest request = PreferenceRequest.builder().paymentMethods(paymentMethods).build(); client.create(request); //... ``` Copiar ``` #... preference_data = { # ... payment_methods: { excluded_payment_methods: [ { id: 'master' } ], excluded_payment_types: [ { id: 'ticket' } ], installments: 12 } # ... } #... ``` Copiar ``` var paymentMethods = new PreferencePaymentMethodsRequest { ExcludedPaymentMethods = new List { new PreferencePaymentMethodRequest { Id = "master", }, }, ExcludedPaymentTypes = new List { new PreferencePaymentTypeRequest { Id = "ticket", }, }, Installments = 12, }; var request = new PreferenceRequest { // ... PaymentMethods = paymentMethods, }; ``` Copiar ``` #... preference_data = { "excluded_payment_methods": [ { "id": "master" } ], "excluded_payment_types": [ { "id": "ticket" } ], "installations": 12 } #... ``` Copiar