diff --git a/packages/marupay/src/handler.ts b/packages/marupay/src/handler.ts index 468a196..c86e5a8 100644 --- a/packages/marupay/src/handler.ts +++ b/packages/marupay/src/handler.ts @@ -6,6 +6,7 @@ interface IPaymentInfo { transactionId: string paymentStatus: string; referenceId: string; + raw: any; } export const baseConfigSchema = z.object({}); diff --git a/packages/marupay/src/handlers/edahab/edahab.ts b/packages/marupay/src/handlers/edahab/edahab.ts index e1dcac0..30eeed6 100644 --- a/packages/marupay/src/handlers/edahab/edahab.ts +++ b/packages/marupay/src/handlers/edahab/edahab.ts @@ -50,6 +50,7 @@ export const createEdahabHandler = defineHandler({ transactionId: TransactionId, paymentStatus: InvoiceStatus, referenceId, + raw: response.data, }; }; const { links } = ctx; @@ -89,6 +90,7 @@ export const createEdahabHandler = defineHandler({ transactionId: TransactionId, paymentStatus: TransactionStatus, referenceId: generateUuid(), + raw: response.data, }; }; const { links } = ctx; diff --git a/packages/marupay/src/handlers/waafi/waafi.ts b/packages/marupay/src/handlers/waafi/waafi.ts index 12a18d3..e8ab995 100644 --- a/packages/marupay/src/handlers/waafi/waafi.ts +++ b/packages/marupay/src/handlers/waafi/waafi.ts @@ -48,6 +48,7 @@ export const createWaafiHandler = defineHandler({ transactionId: params.transactionId, paymentStatus: params.state, referenceId: params.referenceId, + raw: response.data, }; }; @@ -74,6 +75,7 @@ export const createWaafiHandler = defineHandler({ transactionId: params.transactionId, paymentStatus: params.state, referenceId: referenceId.toString(), + raw: response.data, }; };