lib/mercadopago/client.rb
#
# Retrieves the latest information about a payment or a merchant order.
#
# - entity_id: the id of the entity (paymento or merchant order) to be checked.
#
Retrieves the latest information about a payment or a merchant order.
entity_id: the id of the entity (paymento or merchant order) to be checked.
Retrieves the latest information about a payment or a merchant order . entity_id : the id of the entity ( paymento or merchant order ) to be checked .
def notification(entity_id, topic = 'payment')
      case topic.to_s
      when 'merchant_order'
        MercadoPago::MerchantOrder.notification(@access_token, entity_id)
      else 
        MercadoPago::Collection.notification(@access_token, entity_id, @sandbox)
      end
    end
def notification ( entity_id , topic = 'payment' ) case topic . to_s when 'merchant_order' MercadoPago :: MerchantOrder . notification ( @access_token , entity_id ) else MercadoPago :: Collection . notification ( @access_token , entity_id , @sandbox ) end end
Retrieves the latest information about a payment or a merchant order.
Retrieves the latest information about a payment or a merchant order .
# 'payment'
entity_id
topic