Mercado Pago SDK for Ruby

Gem Gem APM

This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.

πŸ’‘ Requirements

The SDK Supports Ruby from version v0

πŸ“² Installation

First time using Mercado Pago? Create your Mercado Pago account, if you don’t have one already.

  1. Run gem install mercadopago-sdk

  2. Copy the access_token in the credentials section of the page and replace YOUR_ACCESS_TOKEN with it.

That's it! Mercado Pago SDK has been successfully installed.

🌟 Getting Started

Simple usage looks like:

require 'mercadopago.rb'

$mp = MercadoPago.new('YOUR_ACCESS_TOKEN')

preference_data = {
    "items": [
        {
            "title": "testCreate", 
            "quantity": 1, 
            "unit_price": 10.2, 
            "currency_id": "ARS"
        }
preference = $mp.create_preference(preference_data)

puts preference

πŸ“š Documentation

Visit our Dev Site for further information regarding:

Check our official code reference to explore all available functionalities.

❀️ Support

If you require technical support, please contact our support team at developers.mercadopago.com

🏻 License

MIT license. Copyright (c) 2018 - Mercado Pago / Mercado Libre 
For more information, see the LICENSE file.