class Bancard::SingleBuyInitResponse

Constants

REDIRECT_PATH

Attributes

body[R]

Public Class Methods

new(response) click to toggle source
# File lib/bancard/single_buy_init_response.rb, line 9
def initialize(response)
  @original_response = response
  @body              = JSON.parse(response.body)
end

Public Instance Methods

message() click to toggle source
# File lib/bancard/single_buy_init_response.rb, line 30
def message
end
params() click to toggle source
# File lib/bancard/single_buy_init_response.rb, line 18
def params
  body.merge 'payment_url' => payment_url
end
payment_url() click to toggle source
# File lib/bancard/single_buy_init_response.rb, line 22
def payment_url
  Bancard.vpos_url(REDIRECT_PATH) + "?process_id=#{process_id}"
end
process_id() click to toggle source
# File lib/bancard/single_buy_init_response.rb, line 26
def process_id
  body['process_id']
end
success?() click to toggle source
# File lib/bancard/single_buy_init_response.rb, line 14
def success?
  body['status'] == 'success'
end