status
Check payment or charge status using a correlation ID to verify transaction completion and details.
Instructions
Check payment or charge status by correlation ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Payment or charge correlation ID | |
| provider | No | Provider that handled the transaction |
Implementation Reference
- src/providers/woovi.ts:189-205 (handler)The `status` method in `WooviProvider` fetches the status of a charge from the Woovi API and returns a `StatusResult`.
async status(id: string): Promise<StatusResult> { const raw = await this.request( "GET", `/charge/${encodeURIComponent(id)}` ); const data = WooviChargeResponse.parse(raw); return { id, status: data.charge.status ?? "UNKNOWN", provider: this.name, amount: data.charge.value ?? 0, currency: "BRL", timestamp: data.charge.updatedAt ?? new Date().toISOString(), }; }