• Resolved mlcue

    (@mlcue)


    The customer’s email address is being recorded ok here:

    “metadata”: {
    “Customer Name”: “Correct Name”,
    “Customer Email”: “Correct email”
    },

    But the customer’s email address required for Stripe to send out an email receipt is not getting passed to Stripe here:

    “paid”: true,
    “receipt_email”: null,
    “receipt_number”: null,
    “refunded”: false,

    How can I fix this please?

    Wordpress 4.7.3
    woocommerce stripe gateway plugin 3.1.3
    woocommerce 2.6.14

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Can you try setting the return of the following filter to ‘false’ and seeing if the receipt email is passed?

    wc_stripe_send_stripe_receipt

    Please also check your Stripe account settings to ensure that receipt emails are enabled.

    Thread Starter mlcue

    (@mlcue)

    How do I set the return of the filter as instructed, bearing in mind that I am using a child theme?

    The Stripe account is definitely set to enable receipts.

    Thank you.

    Same problem for me, receipts enabled at STRIPEs end and the users email is sent over as their customer email, but STRIPE isn’t seeing it as a receipt email and isn’t sending one out

    Thoughts?

    • This reply was modified 7 years, 7 months ago by tehmooo.

    I’m also seeing a problem with Stripe receipts and also Drip integration, seemingly because “receipt_email” is “null” in my Stripe event.

    I’ve ensured receipt emails are enabled in Stripe.

    I’ve also added the filter you suggested to my functions.php file:

    add_filter( 'wc_stripe_send_stripe_receipt', '__return_false' );

    Even with these changes, I’m still not getting any “receipt_email” through the Stripe WooCommerce Gateway into Stripe. Under “metadata”, “Customer Email” records the correct email address, but “receipt_email” continues to be “null”.

    How can I get the WooCommerce Stripe Gateway to include the email address in the “receipt_email” field?

    I don’t mind using WooCommerce for receipts instead of Stripe, but not sending that email in that field appears to affect other things like my Drip email marketing integration (which gets test charge events sent directly from within Stripe, but not from Stripe when WooCommerce is the one creating the event).

    Haha I thought that was kind of odd, setting that filter to false (as suggested above). I inspected the logic inside class-wc-gateway-stripe.php and then set the filter to true in my functions.php like so:

    add_filter( 'wc_stripe_send_stripe_receipt', '__return_true' );

    Worked a treat, I get the customer email in the receipt_email field in Stripe, and the integration with Drip works as a result! ??

    Same for me and this topic is 3 Months old :-(! Solution with:

    wc_stripe_send_stripe_receipt’, true

    in “class-wc-gateway-stripe.php” worked. But no improvement since 3 months for the Plugin!??? This is sad!!

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Sorry for the confusion, the correct snippet is indeed the following:

    add_filter( 'wc_stripe_send_stripe_receipt', '__return_true' );

    So…is there a need to use this Snippet or is it done with the last update!?

    Best Regards

    Hi this seems to be not working anymore. I tried pasting the snippet on my functions.php.

    Btw we allow customer to order as guest. And we want the plugin to atleast push the customer name or email under Customer field in stripe payment dashboard. Please help! this is important for us as this field is required for our zapier integration.
    thanks!

    • This reply was modified 6 years, 8 months ago by jpsr23.

    “receipt_email”: null

    Ares

    (@ismartpink)

    I faced same issue described in this topic, WordPress do not share recipients email address with the Stripe – thus I can not use automatic Receipt with Stripe and allow my customers to receive additional separate receipts from Stripe itself.

    Can someone confirm if this is still working?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Email address for receipt not being passed to Stripe’ is closed to new replies.