?
Solved

Woocommerce - web hook for paypal payment received

Posted on 2016-07-15
2
Medium Priority
?
372 Views
Last Modified: 2016-07-18
A client of mine has an online store built in Wordpress / Woocommerce. We need to setup a web hook to notify another system when an an order is complete and payment has been received.

I've successfully setup a web hook for when the order is complete, however this isn't confirmation of when paypal payment is received.

I've tried to search Google, but can't seem to find an answer. How do you setup a web hook when paypal payment has been received?
0
Comment
Question by:SheppardDigital
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Andrew Angell earned 2000 total points
ID: 41713614
Since you're already using WordPress / WooCommerce I would recommend installing the PayPal IPN for WordPress plugin.

This will get you up and running quickly with IPN catch-all solution, and it provides hooks for you to use for triggering your own functions based on the transaction type and/or payment status of a transaction.

For example, you could use the "paypal_ipn_for_wordpress_payment_status_completed" hook to run some code every time a PayPal payment is completed.  You could use different hooks for pending payments, failed payments, etc.

So within your hook functions you can update WordPress / WooCommerce data, hit 3rd party web services, send out customized email notifications, or whatever else you need to automate based on the transaction details.
0
 

Author Comment

by:SheppardDigital
ID: 41716349
Andrew, thanks, that looks like it'll work.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn about the eCommerce marketing trends for the year ahead.
The viewer will learn how to count occurrences of each item in an array.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question