wordpress - Repeat triggering of 'woocommerce_payment_complete' hook for dev -
wordpress - Repeat triggering of 'woocommerce_payment_complete' hook for dev -
'woocommerce_payment_complete' hook triggered when payment flagged accepted payment gateway in woocommerce.
it's useful hook because can create things happen payment passes.
the problem i'm having testing custom functions attach hook - extremely laborious.
basically, every time want test 1 of functions attached hook have fill card, go through check out, submit payment analyse happens. if there's bug or error have fill card, go through check out, submit payment analyse happens on again.
i'm losing hours doing this, wondering, have dev tip create less time consuming?
this hook fired after steps (may) include financial transactions. testing contents not require financial transaction, wordpress have step through shopping cart events, in order later point hook fired.
what did create 100% discount coupon, not need bother financial transactions when modify/test code involved in hook. way can purchase shopping cart , watch logs output messages telling me code called when hook called, after shop code has done thing.
wordpress woocommerce payment-gateway
Comments
Post a Comment