Transaction Email Receipts

Prev Next

Blackthorn | Payments allows you to send receipts from Salesforce using the “Send Blackthorn | Payment Receipt” flow or from Stripe.

If you choose to send from Salesforce, you will have full control over the Email Template (HTML or text) and who the email goes to (Email Alert). Emails from Stripe offer two options: successful payments and/or refunds.

NOTE: Please do not send receipts from both Blackthorn | Payments and Stripe. Your customers do not want to receive two emails with the same information about a Transaction.

Customize the Email Template

The information below provides instructions on customizing the Email Template for the automated Transaction email receipt.

The Email Template defines what message will be sent to your customer and whether it is formatted (HTML) or not (Text).

For this example, we are working with the Receipt (HTML) template in the Classic Email Templates.

  1. Go to Setup.

  2. In the Quick Find box, enter “Email Templates.”

  3. Select “Classic Email Templates.”

  4. In the Folder drop-down, select “Blackthorn | Payments.”
    Customize Email Template - Select Blackthorn | Payments

  5. Click "Receipt (HTML)" to select the template.
     Customize Email Template - Click Receipt HTML

  6. Click the Edit HTML Version button.
     Customize Email Template - Click Edit HTML version

  7. Update the email message.
    For the Email Template, merge fields can only come from the Transaction object. If you need to use merge fields from a related object, you must create formula fields on the Transaction object first. Review the section below for the steps to add custom fields.
     Customize Email Template - Update email message

  8. Click Save.

Send from Blackthorn Payments

The Transaction flow used to send the Payments Receipt Email is the “Send Blackthorn | Payment Receipt” flow.
Users can launch the Transaction email receipt from the flow in the Payments package. The email receipt will be sent when the Transaction is completed/captured and will contain the Transaction’s Description in a merge field.

To test the flow, complete the steps below.

  1. Process a Transaction with the following values:

    • Amount

    • Transaction Type = “Normal”

    • Transaction Status = “Completed”

    • Payment Status = “Capture”

    • Payment Method Billing Email = the email address where you would like to receive the test

  2. The email will be sent, and the email receipt will contain the Transaction's Description.

Note: The previous Transaction workflow rules, “Send Blackthorn | Payment Receipt (HTML) and “Send Blackthorn | Payment Receipt (Text),” used to send the Transaction email receipt were deprecated. The new “Send Blackthorn | Payment Receipt” flow replaces both.

Send from Stripe

  1. Sign in to your Stripe account.

  2. Go to Settings.

  3. Select Emails.

  4. Select "Successful Payments" and/or "Refunds."
    H_02_06_Stripes automated email

Add Custom Merge Fields to the Email Template

To add custom merge fields from an Opportunity record to the Transaction's Email Template, you must create those fields in the Transaction object as formula-type fields and pull in the values from the related object before they can be added to the Email Template.

For the use case below, we will create a custom field on the Transaction with a formula referencing the Opportunity Name field.

Step One: Create a custom formula field on the Transaction object.

  1. Go to Setup.

  2. Click the Object Manager tab.

  3. In the Quick Find box, enter and click “Transaction.”

  4. Click the Fields & Relationships tab.

  5. Click New.

  6. Select "Formula."
    Add Merge Fields to Email Template - Select Formula

  7. Click Next.

  8. Enter a Field Label.

  9. Set the Formula Return Type to “Text.”
     Add Merge Fields to Email Template - Enter Field Label and set Formula Return Type to Text

  10. Click Next.

  11. Click the Advanced Formula tab.

  12. Click the Insert Field button.
     Add Merge Fields to Email Template - click Advanced Formula tab and click Insert Field

  13. The first column should be set to “Transaction >.”

  14. In the second column, select “Opportunity >.”

  15. In the third column, select “Opportunity Name.”

  16. Click Insert in the fourth column.
     Add Merge Fields to Email Template - set third column to Opportunity Name and click Insert

  17. Click Next.
     Add Merge Fields to Email Template - click Next

  18. Confirm the field-level security.

  19. Click Next.

  20. Confirm which page layouts the field will be added to.

  21. Click Save.

H_02_06_use cases step 1

NOTE: Some field types need special handling. You may need to wrap the field name in a Text(fieldnamehere) OR Value(fieldnamehere). Picklist fields need a value(fieldname), and number fields need a text(fieldname).

Step Two: Update the Blackthorn | Payments Email Receipt Template

  1. Go to Setup

  2. In the Quick Find box, enter “Email Templates.”

  3. Select “Classic Email Templates.”

  4. In the Folder drop-down, select “Blackthorn | Payments.”

  5. Click "Receipt (HTML)" to select the template.

  6. Click the Edit HTML Version button.

  7. Complete the steps below to add the field created in Step One.

    1. In the Select Field Type column, select “Transaction Fields.”

    2. In the Select Field column, select the “name of new field.”

    3. Copy the "Merge Field Value" from the third column and paste it into the message text (HTML Body).

  8. Click Save.

H_02_06_use cases step 2

Manually Send an Email Receipt

  1. Open a Transaction record.

  2. Go to the Activity History Related List.

  3. Click the Email tab.

  4. To change formatting type, click Switch to Text-Only or Switch to HTML.

  5. Click Select Template and select the "Transaction Receipt" (HTML or Text).

  6. Update the fields.

  7. Click Send.

H_02_06_manually send email receipt

Troubleshooting

If you have received an error regarding email receipts or have a question, please view our Troubleshooting or FAQ page. If you still have Default Payment Method questions, please contact Blackthorn Support. We're happy to help!