Webhook: Get notified if a users pays a bill with specific item_number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Community,
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?
- Labels:
-
Payments REST APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- PayPal Not Passing Amount For Donation in REST APIs
- Webhook: Get notified if a users pays a bill with specific item_number in REST APIs
- hosted button with variable item_number. is this possible? in PayPal Payments Standard
- $_GET[]/$_POST[] vars blank on return from successful payment? in PayPal Payments Standard