• Resolved ifernando

    (@ifernando)


    Dear, I need some help. I have a system (ERP) that is receiving information from the woocommerce store through webhook. By registering a customer, we receive all information to register in the ERP database. But I’m not getting the client’s password, in the customer.created webhook. Is there a solution? What is the best way to receive customer data via webhook along with the password? Because the customer will access the ERP system with the same store data (email and password).

    Thank you in advance and I’m waiting for a solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ifernando

    (@ifernando)

    Anyone know any solution? Need help. Thank you

    Thread Starter ifernando

    (@ifernando)

    I managed to solve. Here is the tip for anyone who had the same problem as me.

    Includes files that send the client’s webhook information registered and updated in the files (in the prepare_item_for_response function):

    \ Wp-content \ plugins \ woocommerce \ includes \ api \ class-wc-rest-customers-controller.php
    \ Wp-content \ plugins \ woocommerce \ includes \ api \ legacy \ v1 \ class-wc-api-customers.php (v1, v2 and v3)

    The following information will be sent to json:

    Soon after:
    'Username' => $ customer-> user_login,

    Includes:
    'Password' => $ customer-> user_pass,

    Any questions just talk.

    • This reply was modified 8 years, 1 month ago by ifernando.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Password is not sent in webhook’ is closed to new replies.