Skip to content

GoCardless payment ​

Starts the workflow when a GoCardless payment is collected, paid out, failed or charged back, checking at a regular interval. The event lands in data.gocardless, with no triggering email.

The GoCardless payment trigger checks payment events at regular intervals and starts one run per payment collected, paid out, failed, charged back or cancelled, depending on the setting.

The run has no triggering email: nodes that act on the triggering email cannot follow this trigger. Send works when you choose the sending mailbox on the node.

At a glance ​

  • Type: trigger.gocardless · version 1
  • Category: Triggers
  • Kind: Trigger — starts a run
  • Effect: No external effect (none) — nothing is written outside Loop & Roll; safe to replay
  • Needs a carrier email: No
  • Connection: GoCardless
  • Outputs: main
The ports of “GoCardless payment”: what comes in on the left, what goes out on the rightIt starts runs: no input. Outputs: main. It needs a GoCardless connection.GoCardless paymenttrigger.gocardlessEventmainConnection: GoCardless
The ports of “GoCardless payment”: what comes in on the left, what goes out on the right

Connection ​

This node needs a GoCardless connection.

Parameters ​

connection ​

GoCardless connection — The GoCardless connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

event ​

Trigger on

  • Type: One choice (options)
  • Required: Yes
  • Default: confirmed
  • Options:
    • confirmed — Payment collected
    • paid_out — Payment paid out
    • failed — Payment failed
    • charged_back — Payment charged back
    • cancelled — Payment cancelled
    • any — Any change

everyMinutes ​

Check every (minutes)

  • Type: Number (number)
  • Required: No
  • Default: 15
  • Whole number, from 5 to 1440

Outputs ​

  • main — Taken once per new item found by a check: each item starts its own run.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.gocardless.eventId }} — string. The event id (EV…).
  • {{ data.gocardless.action }} — string. What happened (confirmed, failed…).
  • {{ data.gocardless.paymentId }} — string. The payment concerned (PM…).
  • {{ data.gocardless.cause }} — string. The cause given by GoCardless (for example insufficient_funds).
  • {{ data.gocardless.description }} — string. GoCardless’s readable explanation.

Example ​

To follow up a tenant whose payment failed, set Trigger on to “Payment failed”, read the payment with the GoCardless node (payment.get, paymentId {{ data.gocardless.paymentId }}) then write to them.

Tips ​

  • Start position. On publication the trigger starts “from now”: nothing earlier is replayed. Publishing again keeps the position already reached.
  • Cadence. Between 5 and 1,440 minutes. The instance may impose a higher floor; each check uses requests from the connection’s quota.
  • Testing. Testing from this trigger really queries GoCardless and runs the draft on the most recent items, without ever moving the position.
  • Errors. A temporary error leaves the position unchanged and the next check retries. A permanent error (revoked connection, incomplete settings) sends you a notification, once per outage.

Loop & Roll — the workflow builder for email.