1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/lib/pay_zen/item.rb

18 lines
293 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)
@id ||= id
client = klass.constantize
client.get(@id)
end
end