Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hideExpiredPaymentMethods prop added #350

Merged
merged 3 commits into from
May 6, 2024

Conversation

PritishBudhiraja
Copy link
Collaborator

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

There was no prop for hiding the expired saved payment methods now we can hide expired saved payment methods via passing this prop in PaymentElementOptions.

  let options = {
    ...,
    "hideExpiredPaymentMethods": true,
  }

Motivation and Context

How did you test it?

Via passing hideExpiredPaymentMethods in options it will hide the expied cards.

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@PritishBudhiraja PritishBudhiraja added the Ready for Review PR with label Ready for Review should only be reviewed. label May 6, 2024
@PritishBudhiraja PritishBudhiraja self-assigned this May 6, 2024
prafulkoppalkar
prafulkoppalkar previously approved these changes May 6, 2024
@prafulkoppalkar prafulkoppalkar merged commit f2a8c42 into main May 6, 2024
3 checks passed
@prafulkoppalkar prafulkoppalkar deleted the hide-expired-payment-methods-prop branch May 6, 2024 08:00
@github-actions github-actions bot added the Closed Label will be automatically added when the PR will get merged to main label May 6, 2024
akash-c-k pushed a commit that referenced this pull request May 6, 2024
# [0.50.0](v0.49.2...v0.50.0) (2024-05-06)

### Features

* hideExpiredPaymentMethods prop added ([#350](#350)) ([f2a8c42](f2a8c42))
rising-dragon401 added a commit to rising-dragon401/hyperswitch-web that referenced this pull request Jul 2, 2024
# [0.50.0](juspay/hyperswitch-web@v0.49.2...v0.50.0) (2024-05-06)

### Features

* hideExpiredPaymentMethods prop added ([#350](juspay/hyperswitch-web#350)) ([f2a8c42](juspay/hyperswitch-web@f2a8c42))
@PritishBudhiraja PritishBudhiraja removed the Ready for Review PR with label Ready for Review should only be reviewed. label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Label will be automatically added when the PR will get merged to main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants