---
schema_version: "1"
id: 0837b708a5115c594e551212a83ad4e8de95feb13dafb2889e2c461d930c609d
title: Automate Actions Initiated by Payment Events
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/payments_email_receipts.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.payments_email_receipts.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 45dc5fac057010206967831a513881c3098fd305e6b51b89440e465835f785d9
description: Tailor the customer experience by building customized automations that are triggered by payment events. For example, automatically send an email receipt to a customer after a payment is made.
products:
  - Salesforce Payments
  - Commerce
release: "264"
---
# Automate Actions Initiated by Payment Events

Tailor the customer experience by building customized automations that are triggered by payment events. For example, automatically send an email receipt to a customer after a payment is made.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=commerce.payments_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

When a payment is received through a Pay Now payment link or at Commerce store checkout, a payment intent record is created, and it generates a payment platform intent event.

![The sequence of actions from a received payment to the initiation of a platform event.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-payments-264-0-0-production-enus/c04ba30f-6dde-4ea7-949b-4f77b22b9fcb/payments/images/payments_event_automation.png)

Configure flows or Apex triggers that listen to these payment events for the creation, update, or deletion of a payment, a merchant account, a payment link, or a saved payment method.

To learn more about building custom automations, see [Subscribe to to Platform Events using a Flow](https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_subscribe_flow.htm) and [Trailhead: Record-Triggered Flows](https://trailhead.salesforce.com/content/learn/modules/record-triggered-flows).

#### See Also

- [Payments Event Notifications](https://help.salesforce.com/s/articleView?id=commerce.payments_event_notifications.htm&language=en_US)
- [PaymentIntent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_paymentintent.htm)
- [Customer Notifications for Commerce Stores](https://help.salesforce.com/s/articleView?id=commerce.comm_customer_notifications.htm&language=en_US)