Skip to content

Commit

Permalink
Sales: non-discountable links
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Dec 5, 2024
1 parent 17d0632 commit bc20ca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/plugins/buy/src/Paddle.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static function checkout(string $product, array $payload = []): string
'expires' => date('Y-m-d', strtotime('+1 day')),
'quantity_variable' => false,
'quantity' => 1,
'discountable' => (new Sale)->isActive() ? 0 : 1,
...$payload
];

Expand Down

0 comments on commit bc20ca2

Please sign in to comment.