Sha256: c9acde416b4830c2c6374ea3ecf840a540ccc1df606aed93f0b9a668387926df
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 Bytes
Contents
module Spree class BitpayInvoice < ActiveRecord::Base belongs_to :payment_method belongs_to :user has_many :payments, as: :source # DB fields: user_id, invoice_id attr_accessor :bogus # bogus since we need to have a param that is passed to trigger Payment.build_source def actions # TODO: Refund action? ["void"] end # Gets the JSON invoice from Bitpay def find_invoice payment_method.find_invoice(invoice_id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_bitpay-1.0.2 | app/models/spree/bitpay_invoice.rb |
spree_bitpay-0.1.1 | app/models/spree/bitpay_invoice.rb |