• For some reason, some orders where i use payments that take too much to completed make my script fails.

    I’m currently using this to activate a key after payment is completed:

    add_action( 'woocommerce_order_status_completed', 'custom_woocommerce_auto_activate_key', 99, 3);
    add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_activate_key', 99, 3);
    add_action( 'woocommerce_payment_complete', 'custom_woocommerce_auto_activate_key', 99, 3);
    add_action( 'woocommerce_order_status_changed', 'custom_woocommerce_auto_activate_key_order', 99, 3);

    Is there anything more i can do?

    • This topic was modified 4 years, 9 months ago by jrubimf.
  • The topic ‘Activate Key on Order Confirmation’ is closed to new replies.