Module: MercadoPago::MerchantOrder

Defined in:
lib/mercadopago/merchant_order.rb

Class Method Summary collapse

Class Method Details

.notification(access_token, merchant_order_id) ⇒ Object

Receives an access_token and a merchant order id and retrieves information of the order.

  • access_token: an access_token of the MercadoPago account associated with the payment to be checked.

  • merchant_order_id: the id of the order to be checked.



11
12
13
# File 'lib/mercadopago/merchant_order.rb', line 11

def self.notification(access_token, merchant_order_id)
  MercadoPago::Request.wrap_get("/merchant_orders/#{merchant_order_id}?access_token=#{access_token}", { accept: 'application/json' })
end