class Wompi::RApi::Login

Attributes

acceptance_token[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/wompi/r_api/login.rb, line 6
def initialize
  super
end

Public Instance Methods

get_acceptance_token() click to toggle source
# File lib/wompi/r_api/login.rb, line 10
def get_acceptance_token
  @http_verb = 'Get'
  @url += "v1/merchants/#{RApi.pub_key}"

  http
  if success?
    @acceptance_token = @response["data"]["presigned_acceptance"]["acceptance_token"]
    @permalink = @response["data"]["presigned_acceptance"]["permalink"]
    self
  end
end