Method: Webhookdb::Plaid.webhook_response
- Defined in:
- lib/webhookdb/plaid.rb
.webhook_response(request, webhook_secret) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/webhookdb/plaid.rb', line 17 def self.webhook_response(request, webhook_secret) # Eventually we can figure out how to verify Plaid webhooks, # but it's sort of crazy so ignore it for now. return Webhookdb::WebhookResponse.ok(status: 202) if request.env["HTTP_PLAID_VERIFICATION"] return Webhookdb::WebhookResponse.for_standard_secret(request, webhook_secret, ok_status: 200) end |