Method: Fondy::Client#capture

Defined in:
lib/fondy/client.rb

#capture(order_id:, amount:, currency:) ⇒ Object



31
32
33
34
35
36
37
38
39
# File 'lib/fondy/client.rb', line 31

def capture(order_id:, amount:, currency:)
  params = {
    merchant_id: merchant_id,
    order_id: order_id,
    amount: amount,
    currency: currency,
  }
  send_request(:post, '/api/capture/order_id', params)
end