Title: multiple hooks
Last modified: August 31, 2016

---

# multiple hooks

 *  Resolved [Moishy](https://wordpress.org/support/users/moishy/)
 * (@moishy)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multiple-hooks/)
 * Currently i’m using the hook `paypal_ipn_for_wordpress_txn_type_cart` for express
   checkout, what hook can I use to get donations? I would want to have 2 separate
   ipn calls. One for checkout and one for donations
 * [https://wordpress.org/plugins/paypal-ipn/](https://wordpress.org/plugins/paypal-ipn/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multiple-hooks/#post-6905297)
 * That would depend on how you have the donation payment setup. Are you using a
   basic donate button that you created in PayPal, or did you set that up with Express
   Checkout, or what exactly?
 * The best thing to do, probably, is just run a test payment using your donate 
   button, and then check to see what txn_type was used in the raw IPN that gets
   saved for that payment. Then you would use the hook that corresponds to that 
   txn_type.
 * So, instead of `paypal_ipn_for_wordpress_txn_type_cart` you might use `paypal_ipn_for_wordpress_txn_type_web_accept`,
   for example.
 *  Thread Starter [Moishy](https://wordpress.org/support/users/moishy/)
 * (@moishy)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multiple-hooks/#post-6905395)
 * Well that was easy. Thanks!
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multiple-hooks/#post-6905400)
 * Glad to hear it!
 * If you have a moment to [leave a review for the plugin](https://wordpress.org/support/view/plugin-reviews/paypal-ipn)
   that would be greatly appreciated. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘multiple hooks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-ipn_b2a7a0.svg)
 * [PayPal IPN for WordPress](https://wordpress.org/plugins/paypal-ipn/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-ipn/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-ipn/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-ipn/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-ipn/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-ipn/reviews/)

## Tags

 * [ipn](https://wordpress.org/support/topic-tag/ipn/)

 * 3 replies
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/multiple-hooks/#post-6905400)
 * Status: resolved