Stripe logo
Google Sheets logo

Workflow template

Log failed Stripe payments in Google Sheets

Log failed Stripe PaymentIntent attempts in Google Sheets. Append the PaymentIntent ID, attempted amount in original minor units, currency, event time, live mode and event ID.

How it works

From a failed payment attempt to a Sheets register row

1 Trigger · 1 Action
Stripe1 · Trigger

Payment Intent Payment Failed

Receive payment_intent.payment_failed events for failed attempts. This is not a permanently failed-payment assertion: another attempt on the same PaymentIntent can later succeed.

Google Sheets2 · Action

Append failed payment attempt to the register

Append PaymentIntent ID, amount, currency, event created in Unix seconds, livemode and event ID into A–F. Use attempted amount rather than amount_received, preserving source minor units with RAW and INSERT_ROWS.

The result

An append-only history of failed attempts

Optional A–F headers in the mapping order; a blank worksheet works.
PaymentIntent IDAttempted amount (Stripe minor units)CurrencyEvent created (Unix seconds)Live modeEvent ID
pi_example_sheets_failed_payment2900eur1789599600falseevt_example_sheets_failed_payment

Fictional sandbox attempt. The stored amount remains 2900: for EUR this represents 29.00 EUR, while 2900 JPY represents 2900 JPY. It is not amount received or a current payment-status report.

Before activation

Set up your workflow

  1. Choose the Stripe failed-attempt source

    Connect Stripe in sandbox first and retain Payment Intent Payment Failed. Successful, pending and canceled payments are different events and do not trigger this recipe.

  2. Prepare the Sheets attempt log

    Connect Google Sheets and Browse to an existing spreadsheet and worksheet. Reserve A–F in the displayed order. Headers are optional; keep RAW and INSERT_ROWS and review access to the event identifiers.

  3. Verify a fictional sandbox failure

    Activate, wait for Connected and use a fictional failed PaymentIntent attempt in sandbox. Check the original amount, currency, timestamp and Live mode=false. Review the latest payment status in Stripe separately before acting on a logged failure.

Details and limitations
  • Failures are recorded per attempt. Separate failed-attempt events can append separate rows for the same PaymentIntent. A later retry can succeed. Historical payments and later outcomes do not update the log, and manual reruns can duplicate rows.

  • Amounts stay in currency-specific minor units. The action copies amount, not amount_received, and performs no currency conversion or universal division by 100. RAW preserves original numbers and the false sandbox flag.

  • The log does not manage collection. No charge retry, customer contact, refund or invoice retry schedule is performed. Customer contacts, card data, client secrets, metadata and raw error objects are excluded. This is attempt history, not current payment status.

Questions about this template

Why can one PaymentIntent have several rows?

Each separate payment_intent.payment_failed event represents a failed attempt and can add a row, even for the same PaymentIntent. Manual reruns can also duplicate rows.

Is 2900 always the same as 29.00?

No. The source amount uses currency-specific minor units: 2900 EUR means 29.00 EUR, while 2900 JPY means 2900 JPY. The workflow preserves the original value without conversion.

Will a later success update the failed row?

No. Existing payments and later outcomes are not imported or synchronized. Check Stripe’s latest status before following up; a logged failed attempt may later succeed.

Does the workflow retry the charge or expose card errors?

No. It appends six event fields only. Charge retries, customer messages, refunds and invoice collection are not configured; card details, client secrets and raw error objects are not copied.