Type Alias TelemetryEvent
TelemetryEvent:
| { sessionId: string; timestamp: number; type: "mounted" }
| { sessionId: string; timestamp: number; type: "ready" }
| { sessionId: string; timestamp: number; type: "processing" }
| {
currency?: string;
orderId: string;
paymentId: string;
sessionId: string;
timestamp: number;
total?: number;
type: "succeeded";
}
| {
code: string;
message: string;
sessionId: string;
timestamp: number;
type: "failed";
}
| { sessionId: string; timestamp: number; type: "cancelled" }
| {
sessionId: string;
step: string;
timestamp: number;
type: "step_changed";
}
Type Declaration
- { sessionId: string; timestamp: number; type: "mounted" }
- { sessionId: string; timestamp: number; type: "ready" }
- { sessionId: string; timestamp: number; type: "processing" }
- {
currency?: string;
orderId: string;
paymentId: string;
sessionId: string;
timestamp: number;
total?: number;
type: "succeeded";
}
-
Optionalcurrency?: string
-
orderId: string
-
paymentId: string
-
sessionId: string
-
timestamp: number
-
Optionaltotal?: number
-
type: "succeeded"
- {
code: string;
message: string;
sessionId: string;
timestamp: number;
type: "failed";
}
- { sessionId: string; timestamp: number; type: "cancelled" }
- { sessionId: string; step: string; timestamp: number; type: "step_changed" }
Order total in minor units (when the checkout page supplied it).