Class: Webhooks

Inherits:
OpenPayResource show all
Defined in:
lib/openpay/webhooks.rb

Instance Attribute Summary

Attributes inherited from OpenPayResource

#api_hook

Instance Method Summary collapse

Methods inherited from OpenPayResource

#delete, #delete_all, #each, #env, #errors?, #get, #get_with_custom_url, #hash2json, #initialize, #json2hash, #list, #post, #put

Constructor Details

This class inherits a constructor from OpenPayResource

Instance Method Details

#verify(webhook_id, code) ⇒ Object



5
6
7
# File 'lib/openpay/webhooks.rb', line 5

def verify(webhook_id, code)
 post('', "#{webhook_id}/verify/#{code}")
end