Sha256: 3f8d6f04b21b0bcf8d72149402475b59a46fdecac474e497ff1b723f71c28655

Contents?: true

Size: 331 Bytes

Versions: 4

Compression:

Stored size: 331 Bytes

Contents

class MercadoPagoResponse

  # SANDBOX_INIT_POINT = 'sandbox_init_point'
  INIT_POINT = 'init_point'

  def initialize(response)
    @response = response
  end

  def success?
    return @response['error'].nil?
  end

  def redirect_url
    @response['response'][INIT_POINT]
  end

  def error_msg
    @response['error']
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mercado_pago_rails-0.1.3 lib/mercado_pago_rails/mercado_pago_response.rb
mercado_pago_rails-0.1.2 lib/mercado_pago_rails/mercado_pago_response.rb
mercado_pago_rails-0.1.1 lib/mercado_pago_rails/mercado_pago_response.rb
mercado_pago_rails-0.1.0 lib/mercado_pago_rails/mercado_pago_response.rb