Solved

Woocommerce - web hook for paypal payment received

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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.

743 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

13 Experts available now in Live!

Get 1:1 Help Now