joelibaceta
9/6/2016 - 9:15 PM

find_a_payment.rb

payment = MercadoPago::Payment.find("23942394")


payment.status # Obtiene el estado del pago

payer = MercadoPago::Payer.find_by_email("dummy@gmail.com")

payment = MercadoPago::Payment.new
payment.token = "cardtoken"
payment.payment_method_id = "visa"
payment.description = "Dummy Payment"
payment.installments = "3"
payer = payer

payment.save

payment.status # Obtiene el estado del pago