Skip to content

Commit

Permalink
chore: log for bazipass item
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Jun 10, 2024
1 parent 03b93ed commit a12b6f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/routes/ecom/modules/list-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ exports.post = ({ appSdk }, req, res) => {
const installmentsTotal = gateway.discount ? amount.total : initialTotalAmount
// list all installment options and default one
const isBazipass = params.items && params.items.length && params.items.some(({name}) => name.includes('Bazipass'))
console.log('is bazipass', isBazipass, JSON.stringify(params.items))
if (isBazipass) {
installments.max_number = config.bazipass_max_number
installments.max_number = config.bazipass_max_number || 12
}
addInstallments(installmentsTotal, installments, gateway, response, initialTotalAmount, isDiscountInOneParcel)
}
Expand Down

0 comments on commit a12b6f6

Please sign in to comment.