mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-03-01 23:29:23 +01:00
18 lines
293 B
Ruby
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
|