Skip to content

Instantly share code, notes, and snippets.

@MittalPatel-BTC
Created August 25, 2019 16:42
Show Gist options
  • Save MittalPatel-BTC/7061f19f5d7d140b67522870581b9130 to your computer and use it in GitHub Desktop.
Save MittalPatel-BTC/7061f19f5d7d140b67522870581b9130 to your computer and use it in GitHub Desktop.
Define the service for the handling charge dispute request
# app/services/stripe/dispute_event_handler.rb
# Stripe event handler for handling webhook
module Stripe
# This will inherite the eventHandler main class
class DisputeEventHandler < EventHandler
def handle_charge_dispute_created(event)
# your code goes here
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment