@jimrising/easymerchantsdk-react-native 1.2.1 → 1.2.2

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.
Files changed (26) hide show
  1. package/.idea/caches/deviceStreaming.xml +209 -0
  2. package/.idea/workspace.xml +193 -0
  3. package/README.md +1 -1
  4. package/ios/Classes/EasyMerchantSdk.m +5 -5
  5. package/ios/Pods/UserDefaults/UserStoreSingleton.swift +233 -0
  6. package/ios/Pods/ViewControllers/AdditionalInfoVC.swift +1137 -0
  7. package/ios/Pods/ViewControllers/BaseVC.swift +126 -0
  8. package/ios/Pods/ViewControllers/BillingInfoVC/BillingInfoVC.swift +803 -0
  9. package/ios/Pods/ViewControllers/BillingInfoVC/Cells/CityListTVC.swift +46 -0
  10. package/ios/Pods/ViewControllers/BillingInfoVC/Cells/CountryListTVC.swift +47 -0
  11. package/ios/Pods/ViewControllers/BillingInfoVC/Cells/StateListTVC.swift +46 -0
  12. package/ios/Pods/ViewControllers/CountryListVC.swift +404 -0
  13. package/ios/Pods/ViewControllers/EmailVerificationVC.swift +239 -0
  14. package/ios/Pods/ViewControllers/OTPVerificationVC.swift +1134 -0
  15. package/ios/Pods/ViewControllers/PaymentDoneVC.swift +159 -0
  16. package/ios/Pods/ViewControllers/PaymentErrorVC.swift +90 -0
  17. package/ios/Pods/ViewControllers/PaymentInformation/AccountTypeTVC.swift +41 -0
  18. package/ios/Pods/ViewControllers/PaymentInformation/PaymentInfoVC.swift +5160 -0
  19. package/ios/Pods/ViewControllers/PaymentInformation/PaymentInformationCVC.swift +35 -0
  20. package/ios/Pods/ViewControllers/PaymentInformation/SavedAccountsTVC/SavedAccountTVC.swift +77 -0
  21. package/ios/Pods/ViewControllers/PaymentInformation/SavedAccountsTVC/SavedAccountTVC.xib +163 -0
  22. package/ios/Pods/ViewControllers/PaymentInformation/SavedCardsTVC/SavedCardsTVC.swift +76 -0
  23. package/ios/Pods/ViewControllers/PaymentInformation/SavedCardsTVC/SavedCardsTVC.xib +184 -0
  24. package/ios/Pods/ViewControllers/TermAndConditionsVC.swift +63 -0
  25. package/ios/easymerchantsdk.podspec +2 -2
  26. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ //
2
+ // PaymentInformationCVC.swift
3
+ // EasyPay
4
+ //
5
+ // Created by Mony's Mac on 17/09/24.
6
+ //
7
+
8
+ class PaymentInformationCVC: UICollectionViewCell{
9
+
10
+ @IBOutlet weak var vwMain: UIView!
11
+ @IBOutlet weak var lblPayment: UILabel!
12
+ @IBOutlet weak var imgVwPayments: UIImageView!
13
+
14
+ func setUI(){
15
+ vwMain.layer.borderColor = UIColor.gray.cgColor
16
+ vwMain.layer.borderWidth = 1.5
17
+
18
+ // Retrieve border radius from UserDefaults
19
+ if let borderRadiusString = UserStoreSingleton.shared.border_radious,
20
+ let borderRadius = Double(borderRadiusString) { // Convert String to Double
21
+ vwMain.layer.cornerRadius = CGFloat(borderRadius) // Set cornerRadius
22
+ } else {
23
+ vwMain.layer.cornerRadius = 8 // Default value
24
+ }
25
+
26
+ if let fontSizeString = UserStoreSingleton.shared.fontSize,
27
+ let fontSizeDouble = Double(fontSizeString) { // Convert String to Double
28
+ let fontSize = CGFloat(fontSizeDouble) // Convert Double to CGFloat
29
+ lblPayment.font = UIFont.systemFont(ofSize: fontSize)
30
+ }
31
+
32
+ vwMain.layer.masksToBounds = true // Ensure the corners are clipped properly
33
+ }
34
+
35
+ }
@@ -0,0 +1,77 @@
1
+ //
2
+ // SavedAccountTVC.swift
3
+ // EasyPay
4
+ //
5
+ // Created by Mony's Mac on 11/09/24.
6
+ //
7
+
8
+ import UIKit
9
+
10
+ class SavedAccountTVC: UITableViewCell {
11
+ @IBOutlet weak var btnSelectAccount: UIButton!
12
+ @IBOutlet weak var lblAccountNumber: UILabel!
13
+ @IBOutlet weak var lblAccountType: UILabel!
14
+ @IBOutlet weak var viewBtnRemove: UIView!
15
+ @IBOutlet weak var btnRemoveBankAccount: UIButton!
16
+ @IBOutlet weak var btnThreeDotBank: UIButton!
17
+ @IBOutlet weak var imgViewBank: UIImageView!
18
+ @IBOutlet weak var imgViewBankRightCon: NSLayoutConstraint!
19
+ @IBOutlet weak var imgViewBankWidth: NSLayoutConstraint!
20
+ @IBOutlet weak var viewCell: UIView!
21
+
22
+ var isRemoveUpdateViewVisible: Bool = false
23
+
24
+ override func awakeFromNib() {
25
+ super.awakeFromNib()
26
+ addShadowToView(view: viewBtnRemove)
27
+ viewBtnRemove.isHidden = true
28
+
29
+ if let primaryBtnBackGroundColor = UserStoreSingleton.shared.primary_btn_bg_col,
30
+ let uiColor = UIColor(hex: primaryBtnBackGroundColor) {
31
+ btnSelectAccount.tintColor = uiColor
32
+ }
33
+
34
+ if let primaryFontColor = UserStoreSingleton.shared.primary_font_col,
35
+ let uiColor = UIColor(hex: primaryFontColor) {
36
+ lblAccountNumber.tintColor = uiColor
37
+ btnThreeDotBank.tintColor = uiColor
38
+ imgViewBank.tintColor = uiColor
39
+ }
40
+
41
+ if let primaryFontColor = UserStoreSingleton.shared.secondary_font_col,
42
+ let uiColor = UIColor(hex: primaryFontColor) {
43
+ lblAccountType.tintColor = uiColor
44
+ }
45
+
46
+ if let bodyBackGroundColor = UserStoreSingleton.shared.body_bg_col,
47
+ let uiColor = UIColor(hex: bodyBackGroundColor) {
48
+ viewCell.backgroundColor = uiColor
49
+ }
50
+
51
+ if let borderRadiusString = UserStoreSingleton.shared.border_radious,
52
+ let borderRadius = Double(borderRadiusString) { // Convert String to Double
53
+ viewCell.layer.cornerRadius = CGFloat(borderRadius) // Set corner radius
54
+ } else {
55
+ viewCell.layer.cornerRadius = 8 // Default value
56
+ }
57
+ viewCell.layer.masksToBounds = true // Ensure the corners are clipped properly
58
+
59
+ if let fontSizeString = UserStoreSingleton.shared.fontSize,
60
+ let fontSizeDouble = Double(fontSizeString) { // Convert String to Double
61
+ let fontSize = CGFloat(fontSizeDouble) // Convert Double to CGFloat
62
+ lblAccountNumber.font = UIFont.systemFont(ofSize: fontSize)
63
+ lblAccountType.font = UIFont.systemFont(ofSize: fontSize)
64
+ btnRemoveBankAccount.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
65
+ }
66
+
67
+ }
68
+
69
+ private func addShadowToView(view: UIView) {
70
+ view.layer.shadowColor = UIColor.black.cgColor
71
+ view.layer.shadowOpacity = 0.3
72
+ view.layer.shadowOffset = CGSize(width: 0, height: 2)
73
+ view.layer.shadowRadius = 6
74
+ view.layer.masksToBounds = false
75
+ }
76
+
77
+ }
@@ -0,0 +1,163 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+ <device id="retina6_12" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
6
+ <capability name="Named colors" minToolsVersion="9.0"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="System colors in document resources" minToolsVersion="11.0"/>
9
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
+ </dependencies>
11
+ <objects>
12
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
13
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
14
+ <tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="SavedAccountTVC" rowHeight="79" id="KGk-i7-Jjw" customClass="SavedAccountTVC" customModule="EasyPay" customModuleProvider="target">
15
+ <rect key="frame" x="0.0" y="0.0" width="388" height="79"/>
16
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
17
+ <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
18
+ <rect key="frame" x="0.0" y="0.0" width="388" height="79"/>
19
+ <autoresizingMask key="autoresizingMask"/>
20
+ <subviews>
21
+ <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="iZq-xB-OFp">
22
+ <rect key="frame" x="0.0" y="0.0" width="388" height="65"/>
23
+ <subviews>
24
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xDU-Tb-WmP">
25
+ <rect key="frame" x="8" y="15" width="35" height="35"/>
26
+ <constraints>
27
+ <constraint firstAttribute="width" constant="35" id="78p-6Z-xoU"/>
28
+ <constraint firstAttribute="height" constant="35" id="xwU-Td-HAe"/>
29
+ </constraints>
30
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
31
+ <state key="normal" image="circle" catalog="system">
32
+ <preferredSymbolConfiguration key="preferredSymbolConfiguration" configurationType="pointSize" pointSize="18"/>
33
+ </state>
34
+ <state key="selected" image="circle.inset.filled" catalog="system">
35
+ <preferredSymbolConfiguration key="preferredSymbolConfiguration" configurationType="pointSize" pointSize="16"/>
36
+ </state>
37
+ </button>
38
+ <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="building.columns.fill" catalog="system" translatesAutoresizingMaskIntoConstraints="NO" id="Z2k-d8-Dlc">
39
+ <rect key="frame" x="51" y="21" width="40" height="23.666666666666671"/>
40
+ <color key="tintColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
41
+ <constraints>
42
+ <constraint firstAttribute="height" constant="24" id="1cY-0a-EvS"/>
43
+ <constraint firstAttribute="width" constant="40" id="YdO-XX-IdQ"/>
44
+ </constraints>
45
+ </imageView>
46
+ <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="T6u-dI-VTz">
47
+ <rect key="frame" x="103" y="12.666666666666664" width="241" height="40"/>
48
+ <subviews>
49
+ <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S1P-IS-Ey9">
50
+ <rect key="frame" x="0.0" y="0.0" width="241" height="18"/>
51
+ <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
52
+ <nil key="textColor"/>
53
+ <nil key="highlightedColor"/>
54
+ </label>
55
+ <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="u8I-kR-z3b">
56
+ <rect key="frame" x="0.0" y="23" width="241" height="17"/>
57
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
58
+ <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
59
+ <nil key="highlightedColor"/>
60
+ </label>
61
+ </subviews>
62
+ </stackView>
63
+ <view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kCd-cp-4V8">
64
+ <rect key="frame" x="258" y="12.666666666666664" width="80" height="40"/>
65
+ <subviews>
66
+ <stackView opaque="NO" contentMode="scaleToFill" spacing="12" translatesAutoresizingMaskIntoConstraints="NO" id="Aq9-c0-6PV">
67
+ <rect key="frame" x="11.666666666666686" y="5" width="57" height="30"/>
68
+ <subviews>
69
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jf7-VO-0k4">
70
+ <rect key="frame" x="0.0" y="0.0" width="57" height="30"/>
71
+ <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
72
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
73
+ <state key="normal" title="Remove">
74
+ <color key="titleColor" name="E93939"/>
75
+ </state>
76
+ </button>
77
+ </subviews>
78
+ </stackView>
79
+ </subviews>
80
+ <color key="backgroundColor" systemColor="systemBackgroundColor"/>
81
+ <constraints>
82
+ <constraint firstAttribute="width" constant="80" id="FqF-EQ-Hv9"/>
83
+ <constraint firstAttribute="height" constant="40" id="GPA-eB-3Pc"/>
84
+ <constraint firstItem="Aq9-c0-6PV" firstAttribute="centerY" secondItem="kCd-cp-4V8" secondAttribute="centerY" id="KsD-oT-yAk"/>
85
+ <constraint firstItem="Aq9-c0-6PV" firstAttribute="centerX" secondItem="kCd-cp-4V8" secondAttribute="centerX" id="s7y-ry-Jhd"/>
86
+ </constraints>
87
+ <userDefinedRuntimeAttributes>
88
+ <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
89
+ <integer key="value" value="6"/>
90
+ </userDefinedRuntimeAttribute>
91
+ </userDefinedRuntimeAttributes>
92
+ </view>
93
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Nfs-nh-tFm">
94
+ <rect key="frame" x="354" y="17.666666666666671" width="30" height="30"/>
95
+ <constraints>
96
+ <constraint firstAttribute="height" constant="30" id="1kH-bN-DdD"/>
97
+ <constraint firstAttribute="width" constant="30" id="Pqj-RZ-MWJ"/>
98
+ </constraints>
99
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
100
+ <state key="normal" image="Ellipsis"/>
101
+ </button>
102
+ </subviews>
103
+ <color key="backgroundColor" systemColor="systemGray6Color"/>
104
+ <constraints>
105
+ <constraint firstItem="xDU-Tb-WmP" firstAttribute="leading" secondItem="iZq-xB-OFp" secondAttribute="leading" constant="8" id="DT6-RY-7Wy"/>
106
+ <constraint firstItem="Nfs-nh-tFm" firstAttribute="centerY" secondItem="iZq-xB-OFp" secondAttribute="centerY" id="DdX-uv-DfZ"/>
107
+ <constraint firstAttribute="height" constant="65" id="E6s-2K-7wH"/>
108
+ <constraint firstItem="kCd-cp-4V8" firstAttribute="centerY" secondItem="iZq-xB-OFp" secondAttribute="centerY" id="HoN-xk-Tht"/>
109
+ <constraint firstItem="T6u-dI-VTz" firstAttribute="centerY" secondItem="iZq-xB-OFp" secondAttribute="centerY" id="JJ6-bl-9QO"/>
110
+ <constraint firstItem="xDU-Tb-WmP" firstAttribute="centerY" secondItem="iZq-xB-OFp" secondAttribute="centerY" id="MVC-BL-y5Z"/>
111
+ <constraint firstItem="Nfs-nh-tFm" firstAttribute="leading" secondItem="kCd-cp-4V8" secondAttribute="trailing" constant="16" id="RmD-40-VhH"/>
112
+ <constraint firstItem="T6u-dI-VTz" firstAttribute="leading" secondItem="Z2k-d8-Dlc" secondAttribute="trailing" constant="12" id="g9Y-HV-1bG"/>
113
+ <constraint firstItem="Z2k-d8-Dlc" firstAttribute="centerY" secondItem="iZq-xB-OFp" secondAttribute="centerY" id="oXr-Zb-1x5"/>
114
+ <constraint firstAttribute="trailing" secondItem="Nfs-nh-tFm" secondAttribute="trailing" constant="4" id="pBK-f1-ESh"/>
115
+ <constraint firstItem="Nfs-nh-tFm" firstAttribute="leading" secondItem="T6u-dI-VTz" secondAttribute="trailing" constant="10" id="tIx-Qd-H6O"/>
116
+ <constraint firstItem="Z2k-d8-Dlc" firstAttribute="leading" secondItem="xDU-Tb-WmP" secondAttribute="trailing" constant="8" id="tTn-a0-jwk"/>
117
+ </constraints>
118
+ <userDefinedRuntimeAttributes>
119
+ <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
120
+ <integer key="value" value="6"/>
121
+ </userDefinedRuntimeAttribute>
122
+ </userDefinedRuntimeAttributes>
123
+ </view>
124
+ </subviews>
125
+ <constraints>
126
+ <constraint firstItem="iZq-xB-OFp" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Yd8-2B-8C7"/>
127
+ <constraint firstItem="iZq-xB-OFp" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="fxZ-l4-aow"/>
128
+ <constraint firstAttribute="trailing" secondItem="iZq-xB-OFp" secondAttribute="trailing" id="yOJ-gb-gGj"/>
129
+ </constraints>
130
+ </tableViewCellContentView>
131
+ <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
132
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
133
+ <connections>
134
+ <outlet property="btnRemoveBankAccount" destination="Jf7-VO-0k4" id="LRX-bb-tX3"/>
135
+ <outlet property="btnSelectAccount" destination="xDU-Tb-WmP" id="nmU-r7-7u4"/>
136
+ <outlet property="btnThreeDotBank" destination="Nfs-nh-tFm" id="vl3-Ov-eMn"/>
137
+ <outlet property="imgViewBank" destination="Z2k-d8-Dlc" id="9CQ-H4-NAb"/>
138
+ <outlet property="imgViewBankRightCon" destination="g9Y-HV-1bG" id="LtX-iR-Tf9"/>
139
+ <outlet property="imgViewBankWidth" destination="YdO-XX-IdQ" id="TB7-AB-jci"/>
140
+ <outlet property="lblAccountNumber" destination="S1P-IS-Ey9" id="6vF-lw-kTq"/>
141
+ <outlet property="lblAccountType" destination="u8I-kR-z3b" id="06o-4f-nKi"/>
142
+ <outlet property="viewBtnRemove" destination="kCd-cp-4V8" id="JRY-uC-kc0"/>
143
+ <outlet property="viewCell" destination="iZq-xB-OFp" id="yc6-Lk-ssr"/>
144
+ </connections>
145
+ <point key="canvasLocation" x="45.801526717557252" y="32.04225352112676"/>
146
+ </tableViewCell>
147
+ </objects>
148
+ <resources>
149
+ <image name="Ellipsis" width="30" height="30"/>
150
+ <image name="building.columns.fill" catalog="system" width="128" height="112"/>
151
+ <image name="circle" catalog="system" width="128" height="123"/>
152
+ <image name="circle.inset.filled" catalog="system" width="128" height="123"/>
153
+ <namedColor name="E93939">
154
+ <color red="0.9137254901960784" green="0.22352941176470589" blue="0.22352941176470589" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
155
+ </namedColor>
156
+ <systemColor name="systemBackgroundColor">
157
+ <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
158
+ </systemColor>
159
+ <systemColor name="systemGray6Color">
160
+ <color red="0.94901960780000005" green="0.94901960780000005" blue="0.96862745100000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
161
+ </systemColor>
162
+ </resources>
163
+ </document>
@@ -0,0 +1,76 @@
1
+ //
2
+ // SavedCardsTVC.swift
3
+ // EasyPay
4
+ //
5
+ // Created by Mony's Mac on 09/09/24.
6
+ //
7
+
8
+ import UIKit
9
+
10
+ class SavedCardsTVC: UITableViewCell {
11
+
12
+ @IBOutlet weak var imgViewCard: UIImageView!
13
+ @IBOutlet weak var lblCardNumber: UILabel!
14
+ @IBOutlet weak var btnSelectCard: UIButton!
15
+ @IBOutlet weak var btnThreeDot: UIButton!
16
+ @IBOutlet weak var lblExpireDate: UILabel!
17
+ @IBOutlet weak var viewBtnRemoveUpdate: UIView!
18
+ @IBOutlet weak var btnRemoveCard: UIButton!
19
+ @IBOutlet weak var btnUpdateCard: UIButton!
20
+ @IBOutlet weak var imgViewCardWidth: NSLayoutConstraint!
21
+ @IBOutlet weak var imgViewCardRightCon: NSLayoutConstraint!
22
+ @IBOutlet weak var viewCell: UIView!
23
+
24
+ var isRemoveUpdateViewVisible: Bool = false
25
+
26
+ override func awakeFromNib() {
27
+ super.awakeFromNib()
28
+
29
+ addShadowToView(view: viewBtnRemoveUpdate)
30
+ viewBtnRemoveUpdate.isHidden = true
31
+
32
+ if let primaryBtnBackGroundColor = UserStoreSingleton.shared.primary_btn_bg_col,
33
+ let uiColor = UIColor(hex: primaryBtnBackGroundColor) {
34
+ btnSelectCard.tintColor = uiColor
35
+ btnUpdateCard.tintColor = uiColor
36
+ }
37
+
38
+ if let primaryFontColor = UserStoreSingleton.shared.primary_font_col,
39
+ let uiColor = UIColor(hex: primaryFontColor) {
40
+ lblCardNumber.tintColor = uiColor
41
+ lblExpireDate.textColor = uiColor
42
+ }
43
+
44
+ if let bodyBackGroundColor = UserStoreSingleton.shared.body_bg_col,
45
+ let uiColor = UIColor(hex: bodyBackGroundColor) {
46
+ viewCell.backgroundColor = uiColor
47
+ }
48
+
49
+ if let borderRadiusString = UserStoreSingleton.shared.border_radious,
50
+ let borderRadius = Double(borderRadiusString) { // Convert String to Double
51
+ viewCell.layer.cornerRadius = CGFloat(borderRadius) // Set corner radius
52
+ } else {
53
+ viewCell.layer.cornerRadius = 8 // Default value
54
+ }
55
+ viewCell.layer.masksToBounds = true // Ensure the corners are clipped properly
56
+
57
+
58
+ if let fontSizeString = UserStoreSingleton.shared.fontSize,
59
+ let fontSizeDouble = Double(fontSizeString) { // Convert String to Double
60
+ let fontSize = CGFloat(fontSizeDouble) // Convert Double to CGFloat
61
+ lblCardNumber.font = UIFont.systemFont(ofSize: fontSize)
62
+ lblExpireDate.font = UIFont.systemFont(ofSize: fontSize)
63
+ btnRemoveCard.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
64
+ btnUpdateCard.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
65
+ }
66
+ }
67
+
68
+ private func addShadowToView(view: UIView) {
69
+ view.layer.shadowColor = UIColor.black.cgColor
70
+ view.layer.shadowOpacity = 0.3
71
+ view.layer.shadowOffset = CGSize(width: 0, height: 2)
72
+ view.layer.shadowRadius = 6
73
+ view.layer.masksToBounds = false
74
+ }
75
+
76
+ }
@@ -0,0 +1,184 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+ <device id="retina6_12" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
6
+ <capability name="Named colors" minToolsVersion="9.0"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="System colors in document resources" minToolsVersion="11.0"/>
9
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
+ </dependencies>
11
+ <objects>
12
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
13
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
14
+ <tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="SavedCardsTVC" rowHeight="76" id="KGk-i7-Jjw" customClass="SavedCardsTVC" customModule="EasyPay" customModuleProvider="target">
15
+ <rect key="frame" x="0.0" y="0.0" width="321" height="76"/>
16
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
17
+ <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
18
+ <rect key="frame" x="0.0" y="0.0" width="321" height="76"/>
19
+ <autoresizingMask key="autoresizingMask"/>
20
+ <subviews>
21
+ <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aNj-nR-WnE">
22
+ <rect key="frame" x="0.0" y="0.0" width="321" height="65"/>
23
+ <subviews>
24
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VvA-gH-Hh7">
25
+ <rect key="frame" x="8" y="15" width="35" height="35"/>
26
+ <constraints>
27
+ <constraint firstAttribute="width" constant="35" id="2kI-vB-QfW"/>
28
+ <constraint firstAttribute="height" constant="35" id="AJm-dh-r9k"/>
29
+ </constraints>
30
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
31
+ <state key="normal" image="circle" catalog="system">
32
+ <preferredSymbolConfiguration key="preferredSymbolConfiguration" configurationType="pointSize" pointSize="18"/>
33
+ </state>
34
+ <state key="selected" image="circle.inset.filled" catalog="system">
35
+ <preferredSymbolConfiguration key="preferredSymbolConfiguration" configurationType="pointSize" pointSize="16"/>
36
+ </state>
37
+ </button>
38
+ <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Visa" translatesAutoresizingMaskIntoConstraints="NO" id="a0y-1j-sx1">
39
+ <rect key="frame" x="51" y="20.666666666666671" width="40" height="24"/>
40
+ <constraints>
41
+ <constraint firstAttribute="width" constant="40" id="DZU-gW-CCC"/>
42
+ <constraint firstAttribute="height" constant="24" id="SkX-gd-dLX"/>
43
+ </constraints>
44
+ </imageView>
45
+ <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="lmi-Pd-PdB">
46
+ <rect key="frame" x="103" y="12.666666666666664" width="174" height="40"/>
47
+ <subviews>
48
+ <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NJ6-Fo-VxC">
49
+ <rect key="frame" x="0.0" y="0.0" width="174" height="18"/>
50
+ <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
51
+ <nil key="textColor"/>
52
+ <nil key="highlightedColor"/>
53
+ </label>
54
+ <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WTD-Jh-5ZX">
55
+ <rect key="frame" x="0.0" y="23" width="174" height="17"/>
56
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
57
+ <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
58
+ <nil key="highlightedColor"/>
59
+ </label>
60
+ </subviews>
61
+ </stackView>
62
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tGL-Q6-Y62">
63
+ <rect key="frame" x="287" y="17.666666666666671" width="30" height="30"/>
64
+ <constraints>
65
+ <constraint firstAttribute="height" constant="30" id="4fx-T0-4oL"/>
66
+ <constraint firstAttribute="width" constant="30" id="d8d-fv-MSq"/>
67
+ </constraints>
68
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
69
+ <state key="normal" image="Ellipsis"/>
70
+ </button>
71
+ <view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="p28-ex-owu">
72
+ <rect key="frame" x="107" y="12.666666666666664" width="160" height="40"/>
73
+ <subviews>
74
+ <stackView opaque="NO" contentMode="scaleToFill" spacing="12" translatesAutoresizingMaskIntoConstraints="NO" id="zx6-cU-7M2">
75
+ <rect key="frame" x="13" y="0.0" width="134" height="40"/>
76
+ <subviews>
77
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zRM-GW-3Ne">
78
+ <rect key="frame" x="0.0" y="0.0" width="57" height="40"/>
79
+ <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
80
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
81
+ <state key="normal" title="Remove">
82
+ <color key="titleColor" name="E93939"/>
83
+ </state>
84
+ </button>
85
+ <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FnN-yF-hAx">
86
+ <rect key="frame" x="69" y="0.0" width="1" height="40"/>
87
+ <color key="backgroundColor" systemColor="systemGray4Color"/>
88
+ <constraints>
89
+ <constraint firstAttribute="width" constant="1" id="Pmb-Av-ddF"/>
90
+ <constraint firstAttribute="height" constant="40" id="TE0-h8-dZZ"/>
91
+ </constraints>
92
+ </view>
93
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MCm-58-6Zg">
94
+ <rect key="frame" x="82" y="0.0" width="52" height="40"/>
95
+ <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
96
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
97
+ <state key="normal" title="Update"/>
98
+ </button>
99
+ </subviews>
100
+ <constraints>
101
+ <constraint firstItem="FnN-yF-hAx" firstAttribute="top" secondItem="zx6-cU-7M2" secondAttribute="top" id="5hC-2o-GdU"/>
102
+ <constraint firstAttribute="bottom" secondItem="FnN-yF-hAx" secondAttribute="bottom" id="6Wa-jk-5oc"/>
103
+ </constraints>
104
+ </stackView>
105
+ </subviews>
106
+ <color key="backgroundColor" systemColor="systemBackgroundColor"/>
107
+ <constraints>
108
+ <constraint firstAttribute="width" constant="160" id="8Bo-iC-JAU"/>
109
+ <constraint firstItem="zx6-cU-7M2" firstAttribute="centerY" secondItem="p28-ex-owu" secondAttribute="centerY" id="8Kl-7x-4xB"/>
110
+ <constraint firstAttribute="height" constant="40" id="dCg-Ug-Gzv"/>
111
+ <constraint firstItem="zx6-cU-7M2" firstAttribute="centerX" secondItem="p28-ex-owu" secondAttribute="centerX" id="qkE-i8-AJE"/>
112
+ </constraints>
113
+ <userDefinedRuntimeAttributes>
114
+ <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
115
+ <integer key="value" value="6"/>
116
+ </userDefinedRuntimeAttribute>
117
+ </userDefinedRuntimeAttributes>
118
+ </view>
119
+ </subviews>
120
+ <color key="backgroundColor" systemColor="systemGray6Color"/>
121
+ <constraints>
122
+ <constraint firstItem="lmi-Pd-PdB" firstAttribute="leading" secondItem="a0y-1j-sx1" secondAttribute="trailing" constant="12" id="3rF-o5-oAd"/>
123
+ <constraint firstAttribute="trailing" secondItem="tGL-Q6-Y62" secondAttribute="trailing" constant="4" id="INa-Ti-ad1"/>
124
+ <constraint firstItem="tGL-Q6-Y62" firstAttribute="leading" secondItem="p28-ex-owu" secondAttribute="trailing" constant="20" id="Jp2-Fh-HP0"/>
125
+ <constraint firstItem="a0y-1j-sx1" firstAttribute="leading" secondItem="VvA-gH-Hh7" secondAttribute="trailing" constant="8" id="KGb-zl-12W"/>
126
+ <constraint firstItem="VvA-gH-Hh7" firstAttribute="centerY" secondItem="aNj-nR-WnE" secondAttribute="centerY" id="LjX-1S-RYD"/>
127
+ <constraint firstItem="VvA-gH-Hh7" firstAttribute="leading" secondItem="aNj-nR-WnE" secondAttribute="leading" constant="8" id="Mr1-bx-wbP"/>
128
+ <constraint firstItem="tGL-Q6-Y62" firstAttribute="leading" secondItem="lmi-Pd-PdB" secondAttribute="trailing" constant="10" id="QXc-8A-ocY"/>
129
+ <constraint firstItem="p28-ex-owu" firstAttribute="centerY" secondItem="aNj-nR-WnE" secondAttribute="centerY" id="SiU-l4-VLV"/>
130
+ <constraint firstAttribute="height" constant="65" id="Uoc-2C-st1"/>
131
+ <constraint firstItem="tGL-Q6-Y62" firstAttribute="centerY" secondItem="aNj-nR-WnE" secondAttribute="centerY" id="jP4-ru-RSq"/>
132
+ <constraint firstItem="lmi-Pd-PdB" firstAttribute="centerY" secondItem="aNj-nR-WnE" secondAttribute="centerY" id="m9d-nc-eks"/>
133
+ <constraint firstItem="a0y-1j-sx1" firstAttribute="centerY" secondItem="aNj-nR-WnE" secondAttribute="centerY" id="wNQ-Wa-wod"/>
134
+ </constraints>
135
+ <userDefinedRuntimeAttributes>
136
+ <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
137
+ <integer key="value" value="6"/>
138
+ </userDefinedRuntimeAttribute>
139
+ </userDefinedRuntimeAttributes>
140
+ </view>
141
+ </subviews>
142
+ <constraints>
143
+ <constraint firstAttribute="trailing" secondItem="aNj-nR-WnE" secondAttribute="trailing" id="ERn-n2-NYe"/>
144
+ <constraint firstItem="aNj-nR-WnE" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="d0I-b6-ng7"/>
145
+ <constraint firstItem="aNj-nR-WnE" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="xgh-YK-X01"/>
146
+ </constraints>
147
+ </tableViewCellContentView>
148
+ <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
149
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
150
+ <connections>
151
+ <outlet property="btnRemoveCard" destination="zRM-GW-3Ne" id="djR-PF-20e"/>
152
+ <outlet property="btnSelectCard" destination="VvA-gH-Hh7" id="aZz-Fx-ije"/>
153
+ <outlet property="btnThreeDot" destination="tGL-Q6-Y62" id="Z87-kj-Uli"/>
154
+ <outlet property="btnUpdateCard" destination="MCm-58-6Zg" id="edb-Ru-MPD"/>
155
+ <outlet property="imgViewCard" destination="a0y-1j-sx1" id="HU8-Mb-5pf"/>
156
+ <outlet property="imgViewCardRightCon" destination="3rF-o5-oAd" id="MBp-iC-kQE"/>
157
+ <outlet property="imgViewCardWidth" destination="DZU-gW-CCC" id="Vcz-xa-5Rx"/>
158
+ <outlet property="lblCardNumber" destination="NJ6-Fo-VxC" id="Dv6-de-FBK"/>
159
+ <outlet property="lblExpireDate" destination="WTD-Jh-5ZX" id="fmO-fS-X7C"/>
160
+ <outlet property="viewBtnRemoveUpdate" destination="p28-ex-owu" id="3Ma-kB-0po"/>
161
+ <outlet property="viewCell" destination="aNj-nR-WnE" id="c6U-9J-0Qb"/>
162
+ </connections>
163
+ <point key="canvasLocation" x="-5.343511450381679" y="30.985915492957748"/>
164
+ </tableViewCell>
165
+ </objects>
166
+ <resources>
167
+ <image name="Ellipsis" width="30" height="30"/>
168
+ <image name="Visa" width="160" height="100"/>
169
+ <image name="circle" catalog="system" width="128" height="123"/>
170
+ <image name="circle.inset.filled" catalog="system" width="128" height="123"/>
171
+ <namedColor name="E93939">
172
+ <color red="0.9137254901960784" green="0.22352941176470589" blue="0.22352941176470589" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
173
+ </namedColor>
174
+ <systemColor name="systemBackgroundColor">
175
+ <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
176
+ </systemColor>
177
+ <systemColor name="systemGray4Color">
178
+ <color red="0.81960784310000001" green="0.81960784310000001" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
179
+ </systemColor>
180
+ <systemColor name="systemGray6Color">
181
+ <color red="0.94901960780000005" green="0.94901960780000005" blue="0.96862745100000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
182
+ </systemColor>
183
+ </resources>
184
+ </document>
@@ -0,0 +1,63 @@
1
+ //
2
+ // TermAndConditionsVC.swift
3
+ // EasyPay
4
+ //
5
+ // Created by Mony's Mac on 02/09/24.
6
+ //
7
+
8
+ import UIKit
9
+
10
+ class TermAndConditionsVC: UIViewController {
11
+
12
+ @IBOutlet weak var lblTermAndConditions: UILabel!
13
+ @IBOutlet weak var lblSubHead1: UILabel!
14
+ @IBOutlet weak var lblInfo1: UILabel!
15
+ @IBOutlet weak var lblSubHead2: UILabel!
16
+ @IBOutlet weak var lblInfo2: UILabel!
17
+ @IBOutlet weak var lblSubHead3: UILabel!
18
+ @IBOutlet weak var lblInfo3: UILabel!
19
+ @IBOutlet weak var lblInfo4: UILabel!
20
+
21
+ override func viewDidLoad() {
22
+ super.viewDidLoad()
23
+
24
+ uiFinishingTouchElements()
25
+ }
26
+
27
+ func uiFinishingTouchElements() {
28
+ if let primaryFontColor = UserStoreSingleton.shared.primary_font_col,
29
+ let uiColor = UIColor(hex: primaryFontColor) {
30
+ lblTermAndConditions.textColor = uiColor
31
+ lblInfo1.textColor = uiColor
32
+ lblInfo2.textColor = uiColor
33
+ lblInfo3.textColor = uiColor
34
+ lblInfo4.textColor = uiColor
35
+ }
36
+
37
+ if let primaryFontColor = UserStoreSingleton.shared.secondary_font_col,
38
+ let uiColor = UIColor(hex: primaryFontColor) {
39
+ lblSubHead1.textColor = uiColor
40
+ lblSubHead2.textColor = uiColor
41
+ lblSubHead3.textColor = uiColor
42
+ }
43
+
44
+ if let containerBGcolor = UserStoreSingleton.shared.container_bg_col,
45
+ let uiColor = UIColor(hex: containerBGcolor) {
46
+ self.view.backgroundColor = uiColor
47
+ }
48
+
49
+ if let fontSizeString = UserStoreSingleton.shared.fontSize,
50
+ let fontSizeDouble = Double(fontSizeString) { // Convert String to Double
51
+ let fontSize = CGFloat(fontSizeDouble) // Convert Double to CGFloat
52
+ lblInfo1.font = UIFont.systemFont(ofSize: fontSize)
53
+ lblInfo2.font = UIFont.systemFont(ofSize: fontSize)
54
+ lblInfo3.font = UIFont.systemFont(ofSize: fontSize)
55
+ lblInfo4.font = UIFont.systemFont(ofSize: fontSize)
56
+ }
57
+ }
58
+
59
+ @IBAction func actionBtnClose(_ sender: UIButton) {
60
+ self.dismiss(animated: true)
61
+ }
62
+
63
+ }