Module: MercadoPago::Client::Authentication
- Included in:
- MercadoPago::Client
- Defined in:
- app/models/mercado_pago/client/authentication.rb
Instance Method Summary collapse
Instance Method Details
#authenticate ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/models/mercado_pago/client/authentication.rb', line 5 def authenticate response = send_authentication_request @auth_response = JSON.parse(response) rescue RestClient::Exception => e @errors << I18n.t(:authentication_error, scope: :mercado_pago) raise RuntimeError.new e. end |