Skip to content

Accessing stripe event data from webhook #1791

Answered by gmazur591
gmazur591 asked this question in Q&A
Discussion options

You must be logged in to vote

Aaaand I've found it, leaving it here in case someone could use it in the future

@webhooks.handler('charge.succeeded')
def my_handler(event, **kwargs):
amount=event.data['object']['amount']
email=event.data['object']['billing_details']['email']

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gmazur591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant