Skip to content

Instantly share code, notes, and snippets.

Avatar

Lucas Hourquebie lucashour

  • Unagi
  • La Plata, Buenos Aires, Argentina
View GitHub Profile
@lucashour
lucashour / Gemfile
Created Jul 15, 2020
Integrando una API en Rails
View Gemfile
gem 'faraday'
gem 'faraday_middleware'
group :test do
gem 'rspec-rails'
gem 'webmock'
end
@lucashour
lucashour / base.rb
Last active Oct 3, 2019
RoR: Mercado Pago webhooks integration
View base.rb
# app/services/mercadopago_client/base.rb
module MercadopagoClient
class Base
require 'mercadopago'
STATUSES = [
APPROVED = 'approved',
BPP_COVERED = 'bpp_covered',
CHARGED_BACK = 'charged_back',