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
Solved

Woocommerce - web hook for paypal payment received

Posted on 2016-07-15
2
166 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
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.

828 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