Support » Plugin: WooCommerce Braintree Payment Gateway Integration » Email is not saved in ORder admin dashboard

  • Hello,

    After order is placed in admin dashboard of the order the email of the client is not saved.

    Other customer data, such as phone and address are fine. Only email is missing.

    Please support.

    Thank you,

Viewing 1 replies (of 1 total)
  • Found the bug:

    On line 460 and 461 in woo-braintree-payment-gateway.php there is a problem. get_session(‘payeremail’) is getting empty and because of that customer email is not saved:

    $payermail = method_exists($this, 'get_session') ? $this->get_session('payeremail') : '';
    update_post_meta($order_id, '_billing_email', $payermail);

    I added something very simple after that lines, and now I have the email in order admin:

    update_post_meta($order_id, '_billing_email', isset($_POST['billing_email']) ? sanitize_text_field ( $_POST['billing_email'] ) : '');

    Please have this in mind in next release and fix it.

    Thank you,

    • This reply was modified 1 year, 11 months ago by ngrudev.
Viewing 1 replies (of 1 total)
  • The topic ‘Email is not saved in ORder admin dashboard’ is closed to new replies.