All Projects → mercadopago → sdk-ruby

mercadopago / sdk-ruby

Licence: MIT License
Mercado Pago's Official Ruby SDK

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to sdk-ruby

sdk-dotnet
Mercado Pago's Official .Net SDK
Stars: ✭ 50 (+4.17%)
Mutual labels:  mercadopago, backend-sdk
sdk-java
Mercado Pago's Official Java SDK
Stars: ✭ 35 (-27.08%)
Mutual labels:  mercadopago, backend-sdk
SAPIDK-MercadoPago-PHP
SDK Alternativo de Mercado Pago en PHP
Stars: ✭ 14 (-70.83%)
Mutual labels:  mercadopago
cart-woocommerce
Mercado Pago's Official WooCommerce Plugin
Stars: ✭ 82 (+70.83%)
Mutual labels:  mercadopago
mercadoabierto
The Mercadolibre clone
Stars: ✭ 24 (-50%)
Mutual labels:  mercadopago
react-native-mercadopago-px
🚀 MercadoPago PX bridge for react-native
Stars: ✭ 87 (+81.25%)
Mutual labels:  mercadopago
cart-magento2
Mercado Pago's Official Magento 2 Plugin
Stars: ✭ 50 (+4.17%)
Mutual labels:  mercadopago
django-mercadopago
⚠️ Deprecated. Use https://github.com/jazzband/django-payments/ instead.
Stars: ✭ 32 (-33.33%)
Mutual labels:  mercadopago
mercadopago
Gem to communicate with the MercadoPago API
Stars: ✭ 31 (-35.42%)
Mutual labels:  mercadopago
cart-opencart
Mercado Pago's Official OpenCart 1 Plugin
Stars: ✭ 49 (+2.08%)
Mutual labels:  mercadopago
mercadopago
A Ruby Object-oriented gem that facilitates the usage of Mercadopago's API.
Stars: ✭ 16 (-66.67%)
Mutual labels:  mercadopago
react-native-mercadopago-checkout
github.com/blackboxvision/react-native-mercadopago-px
Stars: ✭ 15 (-68.75%)
Mutual labels:  mercadopago

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

Ruby version 2.3 or greater.

📲 Installation

Run gem install mercadopago-sdk

🌟 Getting Started

First time using Mercado Pago? Create your Mercado Pago account.

Copy your Access Token in the credentials panel and replace the text YOUR_ACCESS_TOKEN with it.

Simple usage

To generate a card token read the Checkout API documentation.

require 'mercadopago'

sdk = Mercadopago::SDK.new('YOUR_ACCESS_TOKEN')

payment_data = {
  transaction_amount: 100,
  token: 'CARD_TOKEN',
  description: 'Payment description',
  payment_method_id: 'visa',
  installments: 1,
  payer: {
    email: '[email protected]'
  }
}
result = sdk.payment.create(payment_data)
payment = result[:response]

puts payment

Per-request configuration

All methods that make API calls accept an optional RequestOptions object. This can be used to configure some special options of the request, such as changing credentials or custom headers.

require 'mercadopago'

request_options = Mercadopago::RequestOptions.new(access_token: 'YOUR_ACCESS_TOKEN')
# ...

result = sdk.payment.create(payment_data, request_options: request_options)
payment = result[:response]

📚 Documentation

Visit our Dev Site for further information regarding:

Check our official code reference to explore all available functionalities.

🤝 Contributing

All contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.

Please read and follow our contribution guidelines. Contributions not following this guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.

❤️ Support

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

🏻 License

MIT license. Copyright (c) 2021 - Mercado Pago / Mercado Libre
For more information, see the LICENSE file.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].