1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

22 lines
355 B
Ruby

# frozen_string_literal: true
require 'payment/item'
# PayZen payement gateway
module PayZen; end
## generic wrapper around PayZen classes
class PayZen::Item < Payment::Item
attr_accessor :id
def retrieve(id = nil)
@id ||= id
client = klass.constantize
client.get(@id)
end
def payment_mean?
klass == 'PayZen::Token'
end
end