Created
August 25, 2019 16:42
-
-
Save MittalPatel-BTC/7061f19f5d7d140b67522870581b9130 to your computer and use it in GitHub Desktop.
Define the service for the handling charge dispute request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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