Skip to content

Commit

Permalink
add(marupay): raw field implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshabell committed Dec 15, 2023
1 parent d730139 commit d98357e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/marupay/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ interface IPaymentInfo {
transactionId: string
paymentStatus: string;
referenceId: string;
raw: any;
}

export const baseConfigSchema = z.object({});
Expand Down
2 changes: 2 additions & 0 deletions packages/marupay/src/handlers/edahab/edahab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const createEdahabHandler = defineHandler({
transactionId: TransactionId,
paymentStatus: InvoiceStatus,
referenceId,
raw: response.data,
};
};
const { links } = ctx;
Expand Down Expand Up @@ -89,6 +90,7 @@ export const createEdahabHandler = defineHandler({
transactionId: TransactionId,
paymentStatus: TransactionStatus,
referenceId: generateUuid(),
raw: response.data,
};
};
const { links } = ctx;
Expand Down
2 changes: 2 additions & 0 deletions packages/marupay/src/handlers/waafi/waafi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const createWaafiHandler = defineHandler({
transactionId: params.transactionId,
paymentStatus: params.state,
referenceId: params.referenceId,
raw: response.data,
};
};

Expand All @@ -74,6 +75,7 @@ export const createWaafiHandler = defineHandler({
transactionId: params.transactionId,
paymentStatus: params.state,
referenceId: referenceId.toString(),
raw: response.data,
};
};

Expand Down

0 comments on commit d98357e

Please sign in to comment.