We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f5554f commit 7545ba2Copy full SHA for 7545ba2
Sources/PaystackUI/Charge/ChargeCard/TestMode/TestCards.swift
@@ -54,14 +54,9 @@ extension TestCard {
54
}
55
56
var expiryYear: String {
57
- switch self {
58
- case .success:
59
- return "24"
60
- case .bankAuthentication:
61
62
- case .declined:
63
64
- }
+ let nextYear = Calendar.current.component(.year, from: Date()) + 1
+ let lastTwoDigits = String(nextYear).suffix(2)
+ return "\(lastTwoDigits)"
65
66
67
var cardType: CardType {
0 commit comments