class PaysonAPI::V1::Responses::Payment

Attributes

envelope[RW]
errors[RW]
token[RW]

Public Class Methods

new(data) click to toggle source
# File lib/payson_api/v1/responses/payment.rb, line 9
def initialize(data)
  @envelope = PaysonAPI::V1::Envelope.parse(data)
  @token = data['TOKEN']
  @errors = PaysonAPI::V1::RemoteError.parse(data)
end

Public Instance Methods

forward_url() click to toggle source
# File lib/payson_api/v1/responses/payment.rb, line 19
def forward_url
  PaysonAPI::V1.forward_url(@token)
end
success?() click to toggle source
# File lib/payson_api/v1/responses/payment.rb, line 15
def success?
  @envelope.ack == 'SUCCESS'
end