# MD for: https://www.mercadopago.com.ar/developers/en/docs/sdks-library/overview.md Integrate Mercado Pago with our official libraries With Mercado Pago SDKs you can reduce integration time, work with secure code, and access our API features from your favorite language. 11 official libraries For server, web, and mobile Agile integration Secure and certified code \## Server SDKs Connect your backend to Mercado Pago. Choose your language, install the library, and initialize with your :toolTipComponent\[Access Token\]{content="Private key of the application created in Mercado Pago, used in the backend. You can access it through \*Your integrations > Integration data > Tests > Test credentials\*." link="/developers/en/docs/your-integrations/credentials" linkText="View credentials"}. :::::TabsComponent ::::TabComponent{title="PHP"} \*\*PHP 8.2+\*\* \`\`\`bash composer require mercadopago/dx-php \`\`\` \`\`\`php require\_once('vendor/autoload.php'); use MercadoPago\\MercadoPagoConfig; MercadoPagoConfig::setAccessToken("YOUR\_ACCESS\_TOKEN"); \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-php) :::: ::::TabComponent{title="Java"} \*\*Java 1.8+\*\* \`\`\`xml com.mercadopago sdk-java 2.1.21 \`\`\` \`\`\`java import com.mercadopago.MercadoPagoConfig; MercadoPagoConfig.setAccessToken("YOUR\_ACCESS\_TOKEN"); \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-java) :::: ::::TabComponent{title="Node.js"} \*\*Node.js 12+\*\* \`\`\`bash npm install mercadopago \`\`\` \`\`\`javascript import MercadoPago from 'mercadopago'; const client = new MercadoPago({ accessToken: 'YOUR\_ACCESS\_TOKEN' }); \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-nodejs) :::: ::::TabComponent{title="Ruby"} \*\*Ruby 2.3+\*\* \`\`\`bash gem install mercadopago-sdk \`\`\` \`\`\`ruby require 'mercadopago' sdk = Mercadopago::SDK.new('YOUR\_ACCESS\_TOKEN') \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-ruby) :::: ::::TabComponent{title=".NET"} \*\*.NET Standard 2.1+\*\* \`\`\`bash dotnet add package mercadopago-sdk \`\`\` \`\`\`csharp using MercadoPago.Config; MercadoPagoConfig.AccessToken = "YOUR\_ACCESS\_TOKEN"; \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-dotnet) :::: ::::TabComponent{title="Python"} \*\*Python 3+\*\* \`\`\`bash pip install mercadopago \`\`\` \`\`\`python import mercadopago sdk = mercadopago.SDK("YOUR\_ACCESS\_TOKEN") \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-python) :::: ::::TabComponent{title="Go"} \*\*Go 1.18+\*\* \`\`\`bash go get github.com/mercadopago/sdk-go \`\`\` \`\`\`go import "github.com/mercadopago/sdk-go/pkg/config" cfg, err := config.New("YOUR\_ACCESS\_TOKEN") \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-go) :::: ::::: ## Web SDKs Tokenize cards and render Checkout Bricks directly in the browser. Initialize with your :toolTipComponent\[Public Key\]{content="Public key used in the frontend to access information and encrypt data. You can access it through \*Your integrations > Integration data > Tests > Test credentials\*." link="/developers/en/docs/your-integrations/credentials" linkText="View credentials"}. :::::TabsComponent ::::TabComponent{title="MercadoPago.js"} \*\*Modern browsers (Chrome, Firefox, Safari, Edge)\*\* \`\`\`bash npm install @mercadopago/sdk-js \`\`\` \`\`\`javascript const mp = new MercadoPago("YOUR\_PUBLIC\_KEY"); \`\`\` Or via script tag without a bundler: \`\`\`html \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-js) :::: ::::TabComponent{title="React"} \*\*Modern React\*\* \`\`\`bash npm install @mercadopago/sdk-react \`\`\` \`\`\`react-jsx import { initMercadoPago } from '@mercadopago/sdk-react'; initMercadoPago('YOUR\_PUBLIC\_KEY'); \`\`\` Includes Payment Brick, Wallet Brick, Card Payment Brick, and Status Screen Brick. \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-react) :::: ::::: ## Mobile SDKs Securely integrate card tokenization in native applications. Initialize with your production :toolTipComponent\[Public Key\]{content="Public key used in the frontend to access information and encrypt data. You can access it through \*Your integrations > Integration data > Tests > Test credentials\*." link="/developers/en/docs/your-integrations/credentials" linkText="View credentials"}. :::::TabsComponent ::::TabComponent{title="iOS"} \*\*Swift · UIKit and SwiftUI\*\* 1\. In Xcode, go to \*\*File > Add Packages\*\*. 2\. Paste the URL: \`https://github.com/mercadopago/sdk-ios\` 3\. Select the desired version and click \*\*Add Package\*\*. \`\`\`swift import CoreMethods let configuration = MercadoPagoSDK.Configuration( publicKey: "YOUR\_PUBLIC\_KEY", country: .argentina ) MercadoPagoSDK.shared.initialize(configuration) \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-ios) :::: ::::TabComponent{title="Android"} \*\*Kotlin / Java\*\* \`\`\`kotlin // settings.build.gradle maven { url = uri("https://artifacts.mercadolibre.com/repository/android-releases") } \`\`\` \`\`\`kotlin // build.gradle implementation(platform("com.mercadopago.android.sdk:sdk-android-bom:")) implementation("com.mercadopago.android.sdk:core-methods") \`\`\` \`\`\`kotlin MercadoPagoSDK.initialize( context = this, publicKey = "YOUR\_PUBLIC\_KEY", countryCode = "AR" ) \`\`\` \[→ Repository on GitHub\](https://github.com/mercadopago/sdk-android) :::: ::::: ## Next steps # API Reference Generate code snippets in your favorite language directly from the endpoint reference. [ View reference ](https://www.mercadopago.com.ar/developers/en/reference) Credentials Get your test and production credentials to authenticate your Mercado Pago integrations. [ View credentials ](https://www.mercadopago.com.ar/developers/en/docs/your-integrations/credentials) Security Learn best practices to protect your integration and your buyers' data. [ View security ](https://www.mercadopago.com.ar/developers/en/docs/security/landing-hub) Test accounts Create seller and buyer accounts to test your integration in the sandbox environment. [ View test accounts ](https://www.mercadopago.com.ar/developers/en/docs/your-integrations/test/accounts)