class Payola::Retriever
Public Class Methods
call(params)
click to toggle source
# File lib/payola.rb, line 122 def self.call(params) return nil if StripeWebhook.exists?(stripe_id: params[:id]) StripeWebhook.create!(stripe_id: params[:id]) event = Stripe::Event.retrieve(params[:id], { api_key: Payola.secret_key }) Payola.event_filter.call(event) end