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/token.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

18 lines
463 B
Ruby

# frozen_string_literal: true
require 'pay_zen/client'
# Token/* endpoints of the PayZen REST API
class PayZen::Token < PayZen::Client
def initialize(base_url: nil, username: nil, password: nil)
super(base_url: base_url, username: username, password: password)
end
##
# @see https://payzen.io/en-EN/rest/V4.0/api/playground/Token/Get/
##
def get(payment_method_token)
post('/Token/Get/', paymentMethodToken: payment_method_token)
end
end