New to the community? Welcome! Please read our Community Rules and Guidelines
Join the live Q&A with our Community moderator team Wednesdays, 1-2pm PT (4-5pm ET) and Fridays, 4-5pm GMT. Learn more in Community Events
if a user orders something in my web app, he gets an HTML mail with a paypal button, something like this:
Now I would like to create a webhook that communicates to my web app if the user has payed the bill with `item_number=ICI10989TO11038WHO0TO0`.
Is this possible out of the box, or do I somehow need to register an invoice with such an item_number before I send the paypal button to the customer?
I checked the webhook events at https://developer.paypal.com/docs/integration/direct/webhooks/event-names/ and I only found `INVOICING.INVOICE.PAID`. Is this webhook triggered if someone clicks the above url and pays?
The payment link example you have here is for PayPal Payments Standard. This will not trigger webhooks, but instead will trigger an IPN.
So you would need to setup an IPN listener on your server, and this would receive any IPNs that PayPal sends. Within that, you can check the txn_type and other details like item_number, and build logic to react accordingly based on the IPN data.