Skip to content

Conversation

@raushan-skyflow
Copy link

@raushan-skyflow raushan-skyflow commented Jul 7, 2025

  • This PR fixes a validation issue in the React Native SDK where a credit card expiration date set to the current month and year was incorrectly flagged as invalid.

Why:

  • The existing expiry date validation logic fails when the input is equal to the current month and year. This is incorrect, as cards expiring in the current month are still considered valid until the end of the month.

Outcome:

  • Expiry date validation now correctly accepts the current month and year as valid.
  • No validation error will be shown for cards that are valid through the current month.

Test:

  • Manually & added unit test.

@github-actions
Copy link

github-actions bot commented Jul 7, 2025

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

github-actions bot commented Jul 7, 2025

Semgrep findings: No issues found, Good to merge.

@github-actions
Copy link

github-actions bot commented Jul 8, 2025

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

github-actions bot commented Jul 8, 2025

Semgrep findings: No issues found, Good to merge.

@raushan-skyflow raushan-skyflow changed the base branch from main to release/25.6.1 July 8, 2025 10:42
@raushan-skyflow raushan-skyflow merged commit dde97df into release/25.6.1 Jul 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants