payment service adapt logging
This commit is contained in:
parent
be4d7913ff
commit
2c0f84868a
1 changed files with 2 additions and 1 deletions
|
@ -90,6 +90,7 @@ module.exports = function charge (request) {
|
||||||
// publish transaction to our bigquery database - if we have a bigquery client
|
// publish transaction to our bigquery database - if we have a bigquery client
|
||||||
|
|
||||||
if (bigqueryClient) {
|
if (bigqueryClient) {
|
||||||
|
logger.info('sending data to Big Query');
|
||||||
const rows = [
|
const rows = [
|
||||||
{
|
{
|
||||||
"amount": amount.units + (amount.nanos / 1000000000),
|
"amount": amount.units + (amount.nanos / 1000000000),
|
||||||
|
@ -107,7 +108,7 @@ module.exports = function charge (request) {
|
||||||
.insert(rows);
|
.insert(rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info(`Transaction processed: ${cardType} ending ${cardNumber.substr(-4)} \
|
logger.info(`XXXTransaction processed: ${cardType} ending ${cardNumber.substr(-4)} \
|
||||||
Amount: ${amount.currency_code}${amount.units}.${amount.nanos}`);
|
Amount: ${amount.currency_code}${amount.units}.${amount.nanos}`);
|
||||||
|
|
||||||
return { transaction_id: uuid() };
|
return { transaction_id: uuid() };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue