Sha256: baec79c68ba1061f8b66b91251b7e150b914e339a5b4fe65bfa26d16df3feccf

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

module Paytureman

  class PaymentCharged < PaymentWithSession
    def refund
      if payture.refund(order_id, amount_in_cents)
        PaymentRefunded.new(order_id, amount, session_id, gateway)
      else
        self
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paytureman-1.0.0 lib/payments/payment_charged.rb
paytureman-0.7.0 lib/payments/payment_charged.rb