Class: Multisafepay::CaptureResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/multisafepay/resources/capture.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Multisafepay::Resource

Instance Method Details

#cancel(order_id, payload = {}) ⇒ Object



3
4
5
# File 'lib/multisafepay/resources/capture.rb', line 3

def cancel(order_id, payload = {})
  Capture.new patch_request("capture/#{order_id}", body: payload)
end