PayPal already sends its own emails to the merchants after each transaction completes. In sandbox, you can see the notification methods in the "Notifications" tab of https://developer.paypal.com
If you want to generate your own emails in addition to the PayPal emails, you should use a server-side integration. Here is the front-end UI: https://developer.paypal.com/demo/checkout/#/pattern/server
You'll need two corresponding routes on your server, one for 'Set Up Transaction' and one for 'Capture Transaction', documented here: https://developer.paypal.com/docs/checkout/reference/server-integration/
That last route of yours can send your email on success.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.