mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
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:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user