1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/lib/payment/service.rb
Sylvain e3187460ea create payment schedules on payzen
Also: make generic the creation of products on remote gateway
Also: make generic the call to gateway specific actions
2021-04-30 16:07:19 +02:00

17 lines
427 B
Ruby

# frozen_string_literal: true
# Payments module
module Payment; end
# Abstract class that must be implemented by each payment gateway.
# Provides methods to create remote objects on the payment gateway
class Payment::Service
def create_subscription(_payment_schedule, _gateway_object_id); end
def create_coupon(_coupon_id); end
def delete_coupon(_coupon_id); end
def create_or_update_product(_klass, _id); end
end