fix(payments-next): Block new customers from checking out for free trial with prepaid card#20419
Merged
elizabeth-ilina merged 1 commit intomainfrom Apr 22, 2026
Conversation
e3a52bd to
6e771f4
Compare
bcolsson
approved these changes
Apr 21, 2026
f3776fb to
7c85cbd
Compare
julianpoy
reviewed
Apr 22, 2026
| new PayWithStripeNullCurrencyError(cart.id, price.id) | ||
| ); | ||
|
|
||
| if (freeTrial && Date.now() - accountCreatedAt < 24 * 60 * 60 * 1000) { |
Member
There was a problem hiding this comment.
Can we pull 24 out of here and have it be a constant. FREE_TRIAL_PREPAID_CARD_BLOCKED_HOURS
julianpoy
approved these changes
Apr 22, 2026
…ial with prepaid card Because: * We want to block newly created account (< 24 hours) who are using a prepaid card to start a free trial. This commit: * Implements the above and shows user an informative message. Closes #[PAY-3661](https://mozilla-hub.atlassian.net/browse/PAY-3661)
7c85cbd to
2a79209
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Because
This pull request
Issue that this pull request solves
Closes #PAY-3661
Checklist
Put an
xin the boxes that applyHow to review (Optional)
Screenshots (Optional)
Checking out with new prepaid card:
prepaid-new-blocked.mov
Checking out with saved prepaid card:
prepaid-saved-blocked.mov
Other information (Optional)
Any other information that is important to this pull request.