> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# AnySpend Payment Received

Triggers when a payment completes via AnySpend — accept payments and get paid, with funds landing directly in your wallet on the destination chain, no third-party connector needed. Set a destination chain and recipient address to start your workflow when funds arrive. Optionally enable Payment Link to auto-generate a shareable payment link / checkout URL on publish.

Trigger Commerce

Triggers when a payment completes via AnySpend — accept payments and get paid, with funds landing directly in your wallet on the destination chain, no third-party connector needed. Set a destination chain and recipient address to start your workflow when funds arrive. Optionally enable Payment Link to auto-generate a shareable payment link / checkout URL on publish.

## At a Glance

| Field | Value |
| --- | --- |
| Trigger ID | `anyspend` |
| Category | Commerce |
| Tags | `payment`, `payment-link`, `checkout`, `cross-chain`, `anyspend` |

## Trigger Configuration

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `chainId` | `integer` | Yes | Destination chain ID for the payment |
| `recipientAddress` | `string` | Yes | Payment recipient address \(hex\) |
| `tokenAddress` | `string` | No | Destination token address. If omitted, any token is accepted. |
| `amount` | `string` | No | Required payment amount in token base units \(wei\). |
| `enablePaymentLink` | `boolean` | No | When enabled, a shareable payment link URL is auto-generated on workflow publish. |

## Trigger Result

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `triggeredAt` | `string` | Yes | Timestamp when the payment callback was received \(UTC, RFC3339 format\) |
| `payment` | `object` | Yes | Payment details from AnySpend |
| `inputs` | `object` | No | Optional form data passed via callbackMetadata |
| `paymentLinkUrl` | `string` | No | The shareable payment link URL \(only present for payment-link-enabled triggers\) |

## Workflow Root Example

```json
{
  "nodes": {
    "root": {
      "type": "anyspend",
      "payload": {
        "chainId": 8453,
        "recipientAddress": "0x0000000000000000000000000000000000000000"
      },
      "children": [
        "log_event"
      ]
    },
    "log_event": {
      "type": "log",
      "payload": {
        "message": "Triggered at {{$trigger.triggeredAt}}"
      },
      "children": []
    }
  }
}
```

**Reference trigger output**

Downstream nodes can use `{{$trigger.triggeredAt}}` and any result fields listed above. Event triggers usually expose the raw source payload under a field such as `event`, `body`, `trade`, or `raw`.