Skip to content

Commit

Permalink
Fix check if payment is created
Browse files Browse the repository at this point in the history
CS-5248
  • Loading branch information
MarijaIv committed Mar 22, 2024
1 parent f3751ed commit 85e6677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notification/src/handler/notification/notification.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ async function processNotification(
)

if (
!payment.custom.fields.makePaymentResponse &&
!payment.custom.fields.createSessionResponse
!payment?.custom.fields.makePaymentResponse &&
!payment?.custom.fields.createSessionResponse
) {
const error = new Error(`Payment ${merchantReference} is not created yet.`)
error.statusCode = 503
Expand Down

0 comments on commit 85e6677

Please sign in to comment.