Send email using API

guilhermelima
Contributor
Contributor

Hello,

 

How do I send payment charges by email using an API (Node JS, PHP, etc...)?

Login to Me Too
1 REPLY 1

angelleye
Advisor
Advisor

Are you working with Classic or REST APIs?  With Classic I would use IPN.  With REST there is a similar solution called Webhooks.  In either case you setup a listener script on your server and PayPal's system will POST transaction data, including the fee, to this listener any time a transaction occurs.  You can process this data however you need to within IPN / Webhooks, so you can generate customized, branded email notifications, update your own database systems, hit 3rd party web services, etc.  It all happens in real-time, too (or at least very close to it).

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.