PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, October 20, 2022

[FIXED] How to pass a customer email in a stripe webhook 'invoice.payment_succeeded' event?

 October 20, 2022     node.js, stripe-payments     No comments   

Issue

I am calling a function in case 'invoice.payment_succeeded' that requires the customer's email as input. How do I get the email from this event object? the app is nodejs.

Thanks,


Solution

All invoice webhook events (including invoice.payment_succeeded) will contain the related Invoice object in the event payload, under the object.data field.

The Invoice object will contain a customer_email field which is a snapshot of the email field on the associated Customer object at the time of the invoice.



Answered By - Jonathan Steele
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing