Woocommerce hook correct to verify pagseguro transactions

0

I have a problem, I have integrated a member plugin with woocommerce and I'm having a problem finding the correct hook to verify transactions through the pagseguro.

I'm currently using the 'woocommerce_order_status_processing' hook and within that hook I basically see which plan the user has contracted and I give the necessary permissions to the user and my problem is that this hook works only manually (if I log in to woocommerce > orders and change status from waiting to processing works perfectly), if the payment is made through the pagseguro and the pagseguro plugin changes the status of waiting for processing my function is not called.

I think it's the wrong hook but I can not find a new hook. Anyone have any tips that can help me?

    
asked by anonymous 10.07.2018 / 17:25

0 answers