Method: Unit::Resource::StopPaymentResource.get

Defined in:
lib/unit/api_resources/stop_payment_resource.rb

.get(payment_id) ⇒ UnitResponse, UnitError

Get a stop payment by calling Unit’s API

Parameters:

Returns:



25
26
27
28
# File 'lib/unit/api_resources/stop_payment_resource.rb', line 25

def get(payment_id)
  response = HttpHelper.get("#{api_url}/stop-payments/#{payment_id}", headers: headers)
  response_handler(response)
end