Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Limit payment attempts 1y and 24h to 999 #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ private function getPurchaseInfo()

// Substracting 1 to remove current order from the count
$info->count = (int)($orders6Months->count() -1);
$info->payment_attempts_1y = (int)($orders1Year->count() -1);
$info->payment_attempts_24h = (int)($orders24Hours->count() -1);
$info->payment_attempts_1y = min((int)($orders1Year->count() -1), 999);
$info->payment_attempts_24h = min((int)($orders24Hours->count() -1), 999);

$info->card_stored_24h = 0;

Expand Down