Module: Stripe::Rails::Testing

Defined in:
lib/stripe/rails/testing.rb

Class Method Summary collapse

Class Method Details

.send_event(event, properties = {}) ⇒ Object


12
13
14
15
16
# File 'lib/stripe/rails/testing.rb', line 12

def self.send_event(event, properties = {})
  evt = StripeMock.mock_webhook_event(event, properties)
  target = evt.data.object
  ::Stripe::Callbacks.run_callbacks(evt, target)
end