Skip to content

Instantly share code, notes, and snippets.

@MittalPatel-BTC
Created August 25, 2019 16:43
Show Gist options
  • Save MittalPatel-BTC/dbe63c31af4a87c470299521865a2cff to your computer and use it in GitHub Desktop.
Save MittalPatel-BTC/dbe63c31af4a87c470299521865a2cff to your computer and use it in GitHub Desktop.
Define the service for the handling charge refund request.
# 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