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/transaction.rb

18 lines
441 B
Ruby
Raw Normal View History

2021-06-01 12:20:02 +02:00
# frozen_string_literal: true
require 'pay_zen/client'
# Transaction/* endpoints of the PayZen REST API
class PayZen::Transaction < 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/fr-FR/rest/V4.0/api/playground/Transaction/Get/
##
def get(uuid)
post('/Transaction/Get/', uuid: uuid)
end
end