Sha256: 2093331576a6ede80eb558ba3c03d58b87c60a50b4587d500a0f20fbe2b03a8b

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

module Paytureman

  class PaymentNew < Payment

    def prepare
      session_id = payture.init(self.order_id, (self.amount*100).round, self.ip)
      if session_id
        PaymentPrepared.new(self.order_id, self.amount, self.ip, session_id)
      else
        self
      end
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paytureman-0.3.0 lib/payments/payment_new.rb
paytureman-0.2.0 lib/payments/payment_new.rb
paytureman-0.1.2 lib/payments/payment_new.rb