# Alert Finance When a Shopify Payment Transaction Fails

Source: https://flowsend.co/blog/alert-finance-shopify-payment-transaction-failed

By Hafis CP · Nov 19, 2026

Use Shopify Flow, Sidekick, and FlowSend to email finance when a payment transaction fails, including the order ID, gateway, error code, and amount.

A failed payment can leave an order stuck, and Shopify will not email your finance team about it. You may only hear about it when a customer complains — or not at all. This Shopify Flow tutorial uses Shopify Sidekick and FlowSend to send an **internal alert** whenever a payment transaction on an order fails.

FlowSend is a Shopify Flow mail app from Final Apps. It sends branded transactional emails from a Flow workflow, using your own domain or SMTP provider. Here, FlowSend's **Send Internal Alert** action emails your team the order ID, payment gateway, error code, and amount, so someone can review the transaction in Shopify admin before deciding what to do.

Nothing is retried, charged, or canceled automatically, and the alert does not include payment credentials.

![](https://cdn.appsfinal.com/content/images/2026/11/01-flowsend-intro-2.jpg)FlowSend — Flow Mail App: send branded Shopify Flow emails through your own SMTP, with Liquid templates, CC/BCC, and delivery logs.

![](https://cdn.appsfinal.com/content/images/2026/11/gif-sidekick-builds-workflow-2.gif)One Sidekick prompt drafts the workflow: Sidekick checks the transaction status and FlowSend fields, then creates an inactive draft.

## What this workflow does
The workflow starts from **Order transaction created**, which runs each time a transaction is recorded on an order. That watches the payment attempt itself, not the order as a whole. A failed transaction does not cancel the order, and a canceled order is not a failed payment, so cancellations never trigger this alert.

The condition has one check: the transaction status equals **FAILURE**. If that is true, FlowSend sends one internal alert with the subject **Payment transaction failed**. The message includes:

- The order's legacy ID
- The payment gateway
- The error code
- The amount (and currency, as shown in the alert content)
- A request to review the transaction in Shopify admin before taking any action
- A note that payment retries can generate separate alerts for the same order

The custom email template stays off. FlowSend uses inline alert content and does not create a saved template. The false branch has no action.

Each retry is a new transaction, so it can send its own alert.

## Before you start
You will need:

- A Shopify store with [FlowSend](https://apps.shopify.com/flowsend?ref=blog.appsfinal.com) installed. The listing and these walkthroughs note that you can get started for $1 for the first month.
- [Shopify Flow](https://apps.shopify.com/flow?ref=blog.appsfinal.com), which is what triggers and runs the workflow.
- Access to Shopify Sidekick in your admin, so you can paste the prompt below.
- The finance or staff email you want the alert to reach. Configure that recipient before you use the workflow.

## Step 1. Paste the Sidekick prompt
Open Sidekick in your Shopify admin and paste this prompt, which is the one used in the walkthrough. It asks Sidekick to create an **inactive** draft named "Failed payment transaction alert," without activating the workflow, sending emails, or asking setup questions.

```
Create an inactive Shopify Flow draft named “Failed payment transaction alert”. Do not activate, send emails, or ask setup questions.
Trigger: Order transaction created. Condition: orderTransaction.status equals the schema’s FAILURE value.
TRUE → FlowSend: Send Internal Alert. Set useCustomEmailTemplate=false. Subject: Payment transaction failed Content: Include order legacy ID, orderTransaction.formattedGateway, errorCode, and amountSet.shopMoney.amount. Ask the owner to review the transaction. FALSE → no action.
Validate the status value and Liquid. Do not retry payments, charge customers, cancel orders, or include payment credentials. Report that payment retries can generate separate alerts. Do not create a saved template.

```
![](https://cdn.appsfinal.com/content/images/2026/11/02-sidekick-prompt-2.jpg)Paste the prompt into Sidekick. It starts by checking the transaction status and FlowSend fields, then builds the inactive draft.

## Step 2. Let Sidekick validate and create a draft
Sidekick checks the transaction status and the FlowSend fields, searches for the right tasks, and creates the workflow. When it finishes, you should see **Workflow is ready** and a preview card for **Failed payment transaction alert**.

In the walkthrough, Sidekick confirms that the `FAILURE` status and Liquid passed validation, that nothing was activated or sent, and that the workflow does not retry payments, charge customers, cancel orders, or include payment credentials. It also reports that payment retries can generate separate alerts for the same order.

![](https://cdn.appsfinal.com/content/images/2026/11/03-workflow-ready-validation-2.jpg)Sidekick's summary: the draft is inactive, the condition uses the validated FAILURE status, and retries can send additional alerts.

## Step 3. Open the draft in Flow
Open the draft from Sidekick's preview link. The workflow is saved as a draft and stays switched off until you turn it on.

The canvas has three steps:

- **Order transaction created** — this Shopify trigger runs each time a transaction is recorded on an order.
- **Condition** — "Order transaction status is equal to FAILURE."
- **Send Internal Alert** — FlowSend's internal alert action, on the true branch only.

![](https://cdn.appsfinal.com/content/images/2026/11/04-flow-draft-canvas-2.jpg)The draft workflow, still switched off: Order transaction created, then a FAILURE status check, then FlowSend's Send Internal Alert.

## Step 4. Check the FAILURE condition
Click the condition to confirm the check. In the walkthrough it is set to:

- **Status** (`orderTransaction.status`)
- **Equal to**
- **FAILURE**

Only a failed payment transaction follows the true branch. Successful payments and order cancellations do not.

![](https://cdn.appsfinal.com/content/images/2026/11/05-condition-transaction-failure.jpg)The condition is a single check: the transaction status equals FAILURE.

## Step 5. Review the FlowSend internal alert
Open the **Send Internal Alert** action. The UI describes it as a FlowSend action that sends an alert email to the shop owner via FlowSend SMTP.

In the walkthrough:

- **Alert Subject** is `Payment transaction failed`.
- **Use Custom Email Template** is left off, so FlowSend uses the inline **Alert Content** instead of a saved template.
- The content includes the order legacy ID, gateway, error code, and amount, a request to review the transaction in Shopify admin, and a note that payment retries can generate separate alerts for the same order.
- **Email template** stays on "No template selected."

![](https://cdn.appsfinal.com/content/images/2026/11/06-flowsend-internal-alert-2.jpg)FlowSend's Send Internal Alert, with the custom template off and inline Liquid for the gateway, error code, and amount.

## Step 6. Turn the workflow on yourself
Sidekick leaves the workflow off, as the prompt requested. Review the trigger, condition, and alert content first, and set the finance recipient you actually want to notify. Then click **Turn on workflow**, confirm the dialog, and wait for the **Workflow turned on** confirmation.

![](https://cdn.appsfinal.com/content/images/2026/11/gif-turn-on-workflow-2.gif)Review the draft, then turn it on yourself. Confirm the dialog, and the workflow is live.

![](https://cdn.appsfinal.com/content/images/2026/11/07-workflow-turned-on-2.jpg)The workflow is live. Finance now gets an internal alert for every failed payment transaction.

## Frequently asked questions

### Does this retry the payment or cancel the order?
No. The workflow only notifies your team. It does not retry payments, charge customers, or cancel orders, and the alert does not include payment credentials.

### Why can the same order generate more than one alert?
Each payment retry is a new transaction. If that retry also fails, the workflow can send another alert for the same order.

### Why not use an order-based trigger?
This workflow watches the payment attempt, not the order. A failed transaction does not cancel the order, and a canceled order is not a failed payment, so cancellations never trigger the alert.

### Does FlowSend create a saved email template for this alert?
No. **Use Custom Email Template** stays off, and the walkthrough does not create a saved template. The subject and body are written inline on the Send Internal Alert action.

### How much does it cost to get started?
FlowSend is free to install on the Shopify App Store. At the time of writing, the listing and these walkthroughs offer a **$1 first month** to get started (the current listing describes this as a BFCM offer, with Professional at $9.99/month, Advanced at $29.99/month, and Enterprise at $49.99/month or $499.99/year after that). Pricing can change, so check the [FlowSend listing](https://apps.shopify.com/flowsend?ref=blog.appsfinal.com) for the plan that fits your store.

## Start alerting finance about failed payments
Install FlowSend, paste the Sidekick prompt, review the inactive draft in Flow, and turn it on when the alert looks right. Your finance team can then review failed transactions in Shopify admin before taking any action.

[Install FlowSend on the Shopify App Store](https://apps.shopify.com/flowsend?ref=blog.appsfinal.com) — get started for $1.

![](https://cdn.appsfinal.com/content/images/2026/11/08-install-flowsend-cta-4.jpg)Ready to try it? Install FlowSend from the Shopify App Store and send the failed-payment alert from Shopify Flow.