We've moved discussions to Discord

How to use custom webhook handler?

Xing Li

Pay::Webhooks.delegator.subscribe "stripe.charge.succeeded", MyChargeSucceededProcessor.new

class MyChargeSucceededProcessor
  def call(event)
    # do your processing here
  end
end


I tried to create new event subscriber in `config/initializers/braintree.rb`
And it throws error

config/initializers/braintree.rb:1:in `<main>': undefined method `delegator' for Pay::Webhooks:Module

:(
Notifications
You’re not receiving notifications from this thread.