Faster testing with 'woocommerce_payment_complete'
-
‘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?
- The topic ‘Faster testing with 'woocommerce_payment_complete'’ is closed to new replies.