Created
August 25, 2019 16:43
-
-
Save MittalPatel-BTC/dbe63c31af4a87c470299521865a2cff to your computer and use it in GitHub Desktop.
Define the service for the handling charge refund 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/refund_event_handler.rb | |
# Stripe event handler for handling webhook | |
module Stripe | |
# This will inherite the eventHandler main class | |
class RefundEventHandler < EventHandler | |
def handle_charge_refund_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