• Resolved heidi1234

    (@heidi1234)


    Hi! I am wondering how I can test the “Admin email content” in a test email. I want to be able to see the purchase name, email and what was purchased.

    Thank you!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @heidi1234,

    Thank you for using Direct Stripe.

    Did you run a button in test mode ? The emails are sent during tests too.
    In order to run tests, enable test mode in the Direct Stripe general settings page.

    If you meant that you want to test custom data depending on the button, Direct Stripe have the direct_stripe_success_admin_email_content filter hooks that can be used for that — https://newo.me/direct-stripe-actions-and-filters-hooks/

    Best wishes,

    Nicolas

    Thread Starter heidi1234

    (@heidi1234)

    Thanks Nicolas!

    I’m looking on the back end in WordPress under the ‘Email Setting’ tab. I want to be able to send an email to my email address that will be sent when a product is purchased. I want it receive an email similar to the below:

    This mail is to notify you of a product sale. {product_details} The sale was made to {payer_email}{customer_name}. Thanks!

    Sorry for not being very clear.

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @heidi1234,

    I’m afraid that is not currently a feature of Direct Stripe. The emails written in the settings are applied to all buttons and are not applied any particular tags.

    However, except for the {customer_name}, this can be done using the ‘direct_stripe_success_admin_email_content’ filter hook.

    There is an example of how it works at https://newo.me/filter-direct-stripe-emails/

    I want to move all general settings to be button settings, but that will take time…

    Best wishes,

    Nicolas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automated emails to admin after successful transactions’ is closed to new replies.