Solved

Woocommerce - web hook for paypal payment received

Posted on 2016-07-15
2
103 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
2 Comments
 
LVL 11

Accepted Solution

by:
Andrew Angell earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now