Skip to content

Commit 0f04613

Browse files
committed
feat: add failture details type in trasactions
1 parent 21cd20e commit 0f04613

File tree

5 files changed

+184
-72
lines changed

5 files changed

+184
-72
lines changed

packages/sdks/cart-checkout-order/src/client/types.gen.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,19 @@ export type TransactionResponse = {
19121912
* The status provided by the gateway for this transaction, such as `complete` or `failed`.
19131913
*/
19141914
status?: string
1915+
/**
1916+
* Non-PII payment failure information from the payment gateway. Only present on failed transactions where the gateway provided structured failure details.
1917+
*/
1918+
failure_details?: {
1919+
/**
1920+
* Machine-readable failure or error code from the payment gateway.
1921+
*/
1922+
code?: string
1923+
/**
1924+
* Human-readable failure reason or error message from the payment gateway.
1925+
*/
1926+
reason?: string
1927+
}
19151928
relationships?: {
19161929
order?: {
19171930
data?: {

0 commit comments

Comments
 (0)