Skip to content

Commit

Permalink
Merge pull request #89 from alma/fix/develop_pr
Browse files Browse the repository at this point in the history
rename a constant
  • Loading branch information
joyet-simon authored Oct 13, 2023
2 parents 1e1a422 + 76fa50a commit 11ec724
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var CAPTURE = {
}
};
var MAX_INSTALLMENTS_COUNT_FOR_PNX = 4;
var MAX_DEFERRED_DAYS_FOR_PNX = 0;
var DEFERRED_DAYS_FOR_PNX = 0;

/**
* Allow to check an order status
Expand Down Expand Up @@ -348,7 +348,7 @@ function cancelAlmaPayment(params) {
* @return {boolean} is available
*/
function isAvailableForManualCapture(isManualCaptureEnabled, installmentsCount, deferredDays) {
return isManualCaptureEnabled && installmentsCount <= MAX_INSTALLMENTS_COUNT_FOR_PNX && deferredDays <= MAX_DEFERRED_DAYS_FOR_PNX;
return isManualCaptureEnabled && installmentsCount <= MAX_INSTALLMENTS_COUNT_FOR_PNX && deferredDays <= DEFERRED_DAYS_FOR_PNX;
}

/**
Expand Down

0 comments on commit 11ec724

Please sign in to comment.