Skip to content

Conversation

PritishBudhiraja
Copy link
Contributor

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
@PritishBudhiraja PritishBudhiraja requested review from ArushKapoorJuspay and prafulkoppalkar and removed request for ArushKapoorJuspay May 6, 2024 06:27
prafulkoppalkar
prafulkoppalkar previously approved these changes May 6, 2024
@prafulkoppalkar prafulkoppalkar merged commit f2a8c42 into main May 6, 2024
@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