Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 2ed2aa0

Browse files
author
James Cori
committed
Debug Logging for v5ChallengeId
1 parent d8e5cd8 commit 2ed2aa0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/services/paymentService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ async function paymentExists(payment) {
7171
* @param {Object} payment the payment info
7272
*/
7373
async function createPayment (payment) {
74+
logger.debug(`Creating Payment -> v5ChallengeID: ${payment.v5ChallengeId} - obj: ${JSON.stringify(payment)}`)
7475
const connection = await helper.getInformixConnection()
7576
const paymentDetailId = await paymentDetailIdGen.getNextId()
7677
const paymentId = await paymentIdGen.getNextId()

src/services/processorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function processUpdate(message) {
1919
const legacyId = _.get(message, 'payload.legacyId', null)
2020
const v5ChallengeId = _.get(message, 'payload.id', null)
2121

22-
if (!v5ChallengeId) {
22+
if (!v5ChallengeId || v5ChallengeId === '') {
2323
logger.error('Payload of challenge does not contain a v5 Challenge UUID')
2424
return false
2525
}

0 commit comments

Comments
 (0)