feat(router): payment_method block (#3056)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: shashank_attarde <shashank.attarde@juspay.in>
This commit is contained in:
Prajjwal Kumar
2024-01-11 17:58:29 +05:30
committed by GitHub
parent e376f68c16
commit bb096138b5
60 changed files with 1649 additions and 38 deletions

View File

@ -24,6 +24,13 @@ impl CardNumber {
pub fn get_card_isin(self) -> String {
self.0.peek().chars().take(6).collect::<String>()
}
pub fn get_extended_card_bin(self) -> String {
self.0.peek().chars().take(8).collect::<String>()
}
pub fn get_card_no(self) -> String {
self.0.peek().chars().collect::<String>()
}
pub fn get_last4(self) -> String {
self.0
.peek()