‘woocommerce_payment_complete’ is the hook that is triggered when payment is flagged as accepted by your payment gateway in WooCommerce.

It’s a really useful hook because you can make things happen as soon as payment passes.

The problem I’m having it testing custom functions I attach to the hook - it is extremely laborious.

Basically, every time I want to test one of my functions attached to this hook I have to fill up my card, go through check out, submit payment then analyse what happens. If there’s a bug or error then I have to fill up my card, go through check out, submit payment then analyse what happens all over again.

I’m losing hours doing this, so I was wondering, does anyone have a dev tip to make this less time consuming?

Read more here: Repeat triggering of ‘woocommerce_payment_complete’ hook for dev


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: