add provider detail on the

This commit is contained in:
Abubeker Yasin
2026-07-16 12:05:47 +03:00
parent edbef5ccf2
commit c6ca5ed8e8
4 changed files with 34 additions and 0 deletions

View File

@@ -153,6 +153,13 @@ export type PaymentIntentSnapshot ={
failureCode?: string;
failureMessage?: string;
expiresAt?: string;
/**
* Raw provider payload for inspection/debugging — the audit copy of the provider
* initiation response merged with the latest status-query response (secrets redacted
* upstream). Not a contract with the provider; shape is provider-specific. Never trusted
* for state decisions — the state machine drives `status`.
*/
providerResponse?: Record<string, unknown>;
}
export type PaymentEventType = "payment.succeeded" | "payment.failed";