You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| paidAmount | string \| null | Actual paid amount from transaction. |
169
-
| createdAt | string | ISO 8601. |
171
+
| createdAt | string | ISO 8601 (mandatory). |
172
+
| network | string \| null | Chain type from the chains table (e.g. `ic`, `evm`, `sol`). |
173
+
| token | string \| null | Token symbol from the ledger (e.g. `ICP`, `USDC`). |
174
+
| intent | object \| undefined | When present, includes `intentCode` (number), `amount`, `metadata`, etc. |
170
175
171
176
If the payment is created with status `failed`, a `payment.failed` event is also emitted.
172
177
@@ -180,7 +185,7 @@ If the payment is created with status `failed`, a `payment.failed` event is also
180
185
181
186
**Triggered when:** A payment’s status becomes `completed` (funds received and payment recorded).
182
187
183
-
**data.object**: Same payment shape as **payment.created**. Typically includes `transactionId`, `ledgerTxId`, `amount`, and optional `requestedAmount` / `paidAmount` for mismatch handling. Use this event to fulfill orders or unlock content.
188
+
**data.object**: Same payment shape as **payment.created**, with **createdAt** (mandatory), **completedAt** (when the payment was completed), **network** (chain type: `ic`\|`evm`\|`sol`) and **token** (symbol). When the payment has an associated intent, **intent** is included with **intentCode** as a number. Typically includes `transactionId`, `ledgerTxId`, `amount`, and optional `requestedAmount` / `paidAmount` for mismatch handling. Use this event to fulfill orders or unlock content.
184
189
185
190
## payment.failed
186
191
@@ -204,6 +209,10 @@ If the payment is created with status `failed`, a `payment.failed` event is also
204
209
205
210
### Payment object fields (summary)
206
211
212
+
-**createdAt**: ISO 8601 timestamp; mandatory on all payment events (including `payment.completed`).
213
+
-**network**: Chain type from the chains table (e.g. `ic`, `evm`, `sol`). Always present so you don't need to derive it from `ledgerCanisterId`.
214
+
-**token**: Token symbol from the ledger (e.g. `ICP`, `USDC`). Always present.
215
+
-**intent**: When present, includes **intentCode** (number), `amount`, `metadata`, and other intent fields.
207
216
-**transactionSplitId**: Id of the transaction split that this payment represents.
208
217
-**basePaymentAccountId**: Base account for the intent/transaction (e.g. split rules).
209
218
-**ledgerTxId**: Linked ledger transaction id after sweep/linking.
0 commit comments