contact form 7 pay addons
  • Contact Form 7 Stripe Addon
  • Getting Started
    • Download Plugin
    • Configuration
    • Webhook Configuration
  • Basics
    • Form Checkout Redirect
    • Credit Card From (Pro)
    • Payment Elements Form (Pro)
    • Email Notification (Pro)
    • Confirmation page (Pro)
Powered by GitBook
On this page
  • Prerequisites
  • Supported Emails
  • Supported Merge Fields
  • Metadata merge field
  1. Basics

Email Notification (Pro)

How to set up email notifications and customer invoices for your payment.

PreviousPayment Elements Form (Pro)NextConfirmation page (Pro)

Last updated 4 months ago

In contrast to Contact Form 7's built-in email feature, which is only sent after a successful payment and does not include payment details, most site owners prefer to receive notifications during the payment process. This includes alerts for successful or failed payments, as well as the ability to automate tasks based on these notifications.

Prerequisites

Supported Emails

We currently offer notifications for three event types:

  • Payment Succeeded

  • Payment Failed

  • Customer Invoice

These can be enabled/disabled and customized individually to match your site's style. Let us know if any other email notifications would be helpful for your workflow and we'll consider adding them.

When specifying recipient(s), you can enter multiple emails separated by commas. For example:

Supported Merge Fields

The following merge tags can be used to dynamically insert data into the email content:

Note: Some fields may be empty depending on the payment type - for example, shipping details may be empty if no shipping is required when collecting payment information

{site_title}
{site_url}
{header_text}

{amount}
{description}
{currency}
{created}
{amount_currency}
{matedata}
{payment_method.type}
{payment_method.card.brand}
{payment_method.card.last4}
{customer.name}
{customer.email}
{customer.phone}
{customer.address.country}
{customer.address.state}
{customer.address.city}
{customer.address.line1}
{customer.address.line2}
{customer.address.postal_code}
{billing_detail.address.country}
{billing_detail.address.state}
{billing_detail.address.city}
{billing_detail.address.line1}
{billing_detail.address.line2}
{billing_detail.address.postal_code}
{shipping_detail.address.country}
{shipping_detail.address.state}
{shipping_detail.address.city}
{shipping_detail.address.line1}
{shipping_detail.address.line2}
{shipping_detail.address.postal_code}
{error.message}
{receipt.url}
{payment_intent_id}

Metadata merge field

Metadata is a powerful feature that allows you to store all the submitted form data, which can be leveraged to populate email templates with field names. This information can also be found in the Stripe Dashboard.

The {metadata} is a formatted key-value string including the specified metadata (for checkout redirection) or form values (for payment form)

We can split them by giving an existing key. For example, if a form id key is called 'first_name', we can use it in email as {metadata.first_name}

{customer.email},

sales@payaddons.com
Webhook Configuration