Skip to content

Commit

Permalink
Update amount in transaction initialize session webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
peelar committed Jan 9, 2024
1 parent 9bbd123 commit a0db74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/webhooks/transaction-initialize-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default transactionInitializeSessionSyncWebhook.createHandler(

const normalizedError = normalizeError(error);
return responseBuilder.ok({
amount: 0, // 0 or real amount?
amount: ctx.payload.action.amount,
result: "AUTHORIZATION_FAILURE",
message: "Failure",
data: {
Expand Down

0 comments on commit a0db74e

Please sign in to comment.