Skip to content

Conversation

pvelusamy01
Copy link

Add Payments tools for the following REST API's
post /v2/payments/bin-search
post /v2/payments/bin-search-bulk

): Promise<any> {
logger('[fetchBinData] Starting to fetch BIN data');
logger(`[fetchBinData] Context: ${JSON.stringify({ sandbox: context.sandbox, merchant_id: context.merchant_id })}`);
logger(`[fetchBinData] Parameters: ${JSON.stringify(params)}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't log the payloads or headers

operations: response.data.operations,
parsed_results: results
};
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log only the URL, DebugId and response status or error info incase for error. Please remove rest of the logs

logger(`[handleBinDataError] Request Details: ${JSON.stringify(error.request, null, 2)}`);
} else {
logger(`[handleBinDataError] Request Setup Error: ${error.message}`);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure logs wont any data unless it is an error trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants