@jimrising/easymerchantsdk-react-native 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/caches/deviceStreaming.xml +22 -11
- package/README.md +60 -76
- package/ios/Classes/EasyMerchantSdk.m +52 -37
- package/ios/Classes/EasyMerchantSdk.swift +61 -59
- package/ios/CustomComponents/DatePickerHandler.swift +71 -0
- package/ios/CustomComponents/PlanSelector.swift +58 -0
- package/ios/EnvironmentConfig.swift +2 -1
- package/ios/Models/Request.swift +45 -43
- package/ios/Pods/ViewControllers/AdditionalInfoVC.swift +150 -165
- package/ios/Pods/ViewControllers/BillingInfoVC/BillingInfoVC.swift +56 -183
- package/ios/Pods/ViewControllers/CountryListVC.swift +12 -0
- package/ios/Pods/ViewControllers/EmailVerificationVC.swift +27 -17
- package/ios/Pods/ViewControllers/OTPVerificationVC.swift +200 -79
- package/ios/Pods/ViewControllers/PaymentDoneVC.swift +4 -1
- package/ios/Pods/ViewControllers/PaymentInformation/PaymentInfoVC.swift +2062 -1041
- package/ios/Pods/ViewControllers/PaymentInformation/RecurringTVC.swift +40 -0
- package/ios/easymerchantsdk.podspec +1 -1
- package/ios/easymerchantsdk.storyboard +2190 -853
- package/package.json +1 -1
- package/.idea/workspace.xml +0 -198
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RecurringTVC.swift
|
|
3
|
+
// EasyPay
|
|
4
|
+
//
|
|
5
|
+
// Created by Mony's Mac on 14/05/25.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
import UIKit
|
|
9
|
+
|
|
10
|
+
class RecurringTVC: UITableViewCell {
|
|
11
|
+
|
|
12
|
+
@IBOutlet weak var viewCell: UIView!
|
|
13
|
+
@IBOutlet weak var lblRecurringDuration: UILabel!
|
|
14
|
+
|
|
15
|
+
override func awakeFromNib() {
|
|
16
|
+
super.awakeFromNib()
|
|
17
|
+
|
|
18
|
+
if let primaryFontColor = UserStoreSingleton.shared.primary_font_col,
|
|
19
|
+
let uiColor = UIColor(hex: primaryFontColor) {
|
|
20
|
+
lblRecurringDuration.textColor = uiColor
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if let fontSizeString = UserStoreSingleton.shared.fontSize,
|
|
24
|
+
let fontSizeDouble = Double(fontSizeString) { // Convert String to Double
|
|
25
|
+
let fontSize = CGFloat(fontSizeDouble) // Convert Double to CGFloat
|
|
26
|
+
lblRecurringDuration.font = UIFont.systemFont(ofSize: fontSize)
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
override func layoutSubviews() {
|
|
31
|
+
super.layoutSubviews()
|
|
32
|
+
|
|
33
|
+
if let containerBGcolor = UserStoreSingleton.shared.container_bg_col,
|
|
34
|
+
let uiColor = UIColor(hex: containerBGcolor) {
|
|
35
|
+
self.contentView.backgroundColor = uiColor
|
|
36
|
+
viewCell?.backgroundColor = uiColor // Prevents crash if viewCell is nil
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|