Method: Fondy::Client#reverse

Defined in:
lib/fondy/client.rb

#reverse(order_id:, amount:, currency:, comment: nil) ⇒ Object



41
42
43
44
45
46
47
48
49
50
# File 'lib/fondy/client.rb', line 41

def reverse(order_id:, amount:, currency:, comment: nil)
  params = {
    merchant_id: merchant_id,
    order_id: order_id,
    amount: amount,
    currency: currency,
  }
  params[:comment] = comment if comment
  send_request(:post, '/api/reverse/order_id', params)
end