can't seem to get a response from my app... i'm trying to trap the checkout_session_completed & charge_failed events from Stripe...
this is in my event handler... in addition to what's above
def handle_checkout_session_completed(event)
# your code goes here
render json: {message: 'Ok, great.'}
end
def handle_charge_failed(event)
# your code goes here
render json: {message: 'Not so good.'}
end
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
can't seem to get a response from my app... i'm trying to trap the checkout_session_completed & charge_failed events from Stripe...
this is in my event handler... in addition to what's above
def handle_checkout_session_completed(event)
# your code goes here
render json: {message: 'Ok, great.'}
end
def handle_charge_failed(event)
# your code goes here
render json: {message: 'Not so good.'}
end