@jimrising/easymerchantsdk-react-native 1.2.5 → 1.2.6
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/workspace.xml +1 -0
- package/README.md +1 -1
- package/ios/Classes/EasyMerchantSdk.m +2 -1
- package/ios/Example/Base.lproj/Main.storyboard +1 -1
- package/ios/Example/SceneDelegate.swift +1 -1
- package/ios/Pods/ViewControllers/AdditionalInfoVC.swift +1 -1
- package/ios/Pods/ViewControllers/BillingInfoVC/BillingInfoVC.swift +1 -1
- package/ios/Pods/ViewControllers/PaymentInformation/PaymentInfoVC.swift +11 -11
- package/ios/easymerchantsdk.podspec +1 -1
- package/package.json +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
<change beforePath="$PROJECT_DIR$/ios/Example/Assets.xcassets/Contents.json" beforeDir="false" />
|
|
24
24
|
<change beforePath="$PROJECT_DIR$/ios/Example/Base.lproj/LaunchScreen.storyboard" beforeDir="false" />
|
|
25
25
|
<change beforePath="$PROJECT_DIR$/ios/Example/Base.lproj/Main.storyboard" beforeDir="false" />
|
|
26
|
+
<change beforePath="$PROJECT_DIR$/ios/Example/SceneDelegate.swift" beforeDir="false" afterPath="$PROJECT_DIR$/ios/Example/SceneDelegate.swift" afterDir="false" />
|
|
26
27
|
<change beforePath="$PROJECT_DIR$/ios/Example/ViewController.swift" beforeDir="false" afterPath="$PROJECT_DIR$/ios/Example/ViewController.swift" afterDir="false" />
|
|
27
28
|
<change beforePath="$PROJECT_DIR$/ios/Extensions/UIColor.swift" beforeDir="false" />
|
|
28
29
|
<change beforePath="$PROJECT_DIR$/ios/Extensions/UIFont.swift" beforeDir="false" />
|
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#import "EasyMerchantSdk.h"
|
|
2
2
|
#import <React/RCTLog.h>
|
|
3
3
|
#import <React/RCTBridgeModule.h>
|
|
4
|
-
|
|
4
|
+
//#import <easymerchantsdk/easymerchantsdk-Swift.h>
|
|
5
|
+
#import <easymerchantsdk-Swift.h>
|
|
5
6
|
|
|
6
7
|
@implementation EasyMerchantSdk
|
|
7
8
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<!--View Controller-->
|
|
14
14
|
<scene sceneID="tne-QT-ifu">
|
|
15
15
|
<objects>
|
|
16
|
-
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="
|
|
16
|
+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="easymerchantsdkDemo" customModuleProvider="target" sceneMemberID="viewController">
|
|
17
17
|
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
|
18
18
|
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
|
19
19
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
@@ -186,7 +186,7 @@ class AdditionalInfoVC: BaseVC {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
@IBAction func actionBtnSelectCountryCode(_ sender: UIButton) {
|
|
189
|
-
let vc =
|
|
189
|
+
let vc = easymerchantsdk.instantiateViewController(withIdentifier: "CountryListVC") as! CountryListVC
|
|
190
190
|
vc.delegate = self
|
|
191
191
|
self.navigationController?.pushViewController(vc, animated: true)
|
|
192
192
|
}
|
|
@@ -645,7 +645,7 @@ class BillingInfoVC: BaseVC {
|
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
@IBAction func actionBtnNext(_ sender: UIButton) {
|
|
648
|
-
let vc =
|
|
648
|
+
let vc = easymerchantsdk.instantiateViewController(withIdentifier: "AdditionalInfoVC") as! AdditionalInfoVC
|
|
649
649
|
// Set properties on AdditionalInfoVC
|
|
650
650
|
vc.cardNumber = cardNumber
|
|
651
651
|
vc.expiryDate = expiryDate
|
|
@@ -12,7 +12,7 @@ struct PaymentsData {
|
|
|
12
12
|
var image = String()
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
let
|
|
15
|
+
let easymerchantsdk = UIStoryboard(name: "easymerchantsdk", bundle: Bundle.easyPayBundle)
|
|
16
16
|
|
|
17
17
|
class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
18
18
|
|
|
@@ -971,8 +971,8 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
971
971
|
}
|
|
972
972
|
|
|
973
973
|
@objc func aboutTerms(sender: UITapGestureRecognizer) {
|
|
974
|
-
guard let vc = UIStoryboard(name: "
|
|
975
|
-
print("Error: Could not find TermAndConditionsVC in
|
|
974
|
+
guard let vc = UIStoryboard(name: "easymerchantsdk", bundle: Bundle.easyPayBundle).instantiateViewController(withIdentifier: "TermAndConditionsVC") as? TermAndConditionsVC else {
|
|
975
|
+
print("Error: Could not find TermAndConditionsVC in easymerchantsdk storyboard.")
|
|
976
976
|
return
|
|
977
977
|
}
|
|
978
978
|
vc.modalPresentationStyle = .overFullScreen
|
|
@@ -999,8 +999,8 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
@objc func aboutTermsAndConditions(sender: UITapGestureRecognizer) {
|
|
1002
|
-
guard let vc = UIStoryboard(name: "
|
|
1003
|
-
print("Error: Could not find TermAndConditionsVC in
|
|
1002
|
+
guard let vc = UIStoryboard(name: "easymerchantsdk", bundle: Bundle.easyPayBundle).instantiateViewController(withIdentifier: "TermAndConditionsVC") as? TermAndConditionsVC else {
|
|
1003
|
+
print("Error: Could not find TermAndConditionsVC in easymerchantsdk storyboard.")
|
|
1004
1004
|
return
|
|
1005
1005
|
}
|
|
1006
1006
|
vc.modalPresentationStyle = .overFullScreen
|
|
@@ -1315,7 +1315,7 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
1317
|
// Instantiate BillingInfoVC and pass the selected card data and CVV text
|
|
1318
|
-
let billingInfoVC = UIStoryboard(name: "
|
|
1318
|
+
let billingInfoVC = UIStoryboard(name: "easymerchantsdk", bundle: .easyPayBundle).instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
|
|
1319
1319
|
|
|
1320
1320
|
billingInfoVC.isFrom = "SavedCards"
|
|
1321
1321
|
billingInfoVC.selectedCard = selectedCard // Passing the selected card data
|
|
@@ -1453,7 +1453,7 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
|
|
1455
1455
|
// Instantiate BillingInfoVC and pass the card details
|
|
1456
|
-
let billingInfoVC = UIStoryboard(name: "
|
|
1456
|
+
let billingInfoVC = UIStoryboard(name: "easymerchantsdk", bundle: .easyPayBundle).instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
|
|
1457
1457
|
|
|
1458
1458
|
// Pass the card details
|
|
1459
1459
|
billingInfoVC.cardNumber = cardNumber
|
|
@@ -1546,7 +1546,7 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
1546
1546
|
self.showAlert(title: "Invalid Name", message: "Name must contain only letters and spaces.")
|
|
1547
1547
|
} else {
|
|
1548
1548
|
// Proceed to BillingInfoVC
|
|
1549
|
-
let vc =
|
|
1549
|
+
let vc = easymerchantsdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
|
|
1550
1550
|
vc.billingInfoData = jsonDict
|
|
1551
1551
|
vc.cardNumber = cardNumber
|
|
1552
1552
|
vc.expiryDate = expiryDate
|
|
@@ -1574,7 +1574,7 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
else {
|
|
1576
1576
|
// Proceed to BillingInfoVC
|
|
1577
|
-
let vc =
|
|
1577
|
+
let vc = easymerchantsdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
|
|
1578
1578
|
vc.accountName = self.txtFieldAccountName.text
|
|
1579
1579
|
vc.routingNumber = self.txtFieldRoutingNumber.text
|
|
1580
1580
|
vc.accountType = self.txtFieldAccountType.text
|
|
@@ -1829,7 +1829,7 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
|
|
1831
1831
|
// Proceed with the Pay Now action
|
|
1832
|
-
let vc =
|
|
1832
|
+
let vc = easymerchantsdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
|
|
1833
1833
|
// Pass the customer_id and account_id to BillingInfoVC
|
|
1834
1834
|
vc.customerID = selectedbankAccounts?.customer_id
|
|
1835
1835
|
vc.accountID = selectedbankAccounts?.account_id
|
|
@@ -1893,7 +1893,7 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
1893
1893
|
let isFromValue = isSavedNewAccount ? "AddNewAccountWithSave" : "AddNewAccountWithoutSave"
|
|
1894
1894
|
|
|
1895
1895
|
// Proceed with the Pay Now action
|
|
1896
|
-
let vc =
|
|
1896
|
+
let vc = easymerchantsdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
|
|
1897
1897
|
vc.accountName = accountName
|
|
1898
1898
|
vc.routingNumber = routingNumber
|
|
1899
1899
|
vc.accountType = accountType
|