@jimrising/easymerchantsdk-react-native 1.2.5 → 1.2.7

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.
@@ -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
@@ -7,7 +7,7 @@ To add the path of sdk in your project. Open your `package.json` file and inside
7
7
 
8
8
  ```json
9
9
  "dependencies": {
10
- "@jimrising/easymerchantsdk-react-native": "^1.2.5"
10
+ "@jimrising/easymerchantsdk-react-native": "^1.2.7"
11
11
  },
12
12
  ```
13
13
 
@@ -2,6 +2,7 @@
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="EasyPaySDKDemo" customModuleProvider="target" sceneMemberID="viewController">
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"/>
@@ -1,6 +1,6 @@
1
1
  //
2
2
  // SceneDelegate.swift
3
- // EasyPaySDKDemo
3
+ // easymerchantsdkDemo
4
4
  //
5
5
  // Created by iftekhar on 13/07/24.
6
6
  //
@@ -13,6 +13,9 @@ class ViewController: UIViewController {
13
13
  }
14
14
 
15
15
  @IBAction private func payAction() {
16
+ // let apiKey = "mobilesdk1980IUuCzwWl"
17
+ // let apiSecret = "mobilesdk1980LVHnN0Oh"
18
+
16
19
  let apiKey = "mobilesdk1980IUuCzwWl"
17
20
  let apiSecret = "mobilesdk1980LVHnN0Oh"
18
21
 
@@ -186,7 +186,7 @@ class AdditionalInfoVC: BaseVC {
186
186
  }
187
187
 
188
188
  @IBAction func actionBtnSelectCountryCode(_ sender: UIButton) {
189
- let vc = EasyPaySdk.instantiateViewController(withIdentifier: "CountryListVC") as! CountryListVC
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 = EasyPaySdk.instantiateViewController(withIdentifier: "AdditionalInfoVC") as! AdditionalInfoVC
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 EasyPaySdk = UIStoryboard(name: "EasyPaySdk", bundle: Bundle.easyPayBundle)
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: "EasyPaySdk", bundle: Bundle.easyPayBundle).instantiateViewController(withIdentifier: "TermAndConditionsVC") as? TermAndConditionsVC else {
975
- print("Error: Could not find TermAndConditionsVC in EasyPaySdk storyboard.")
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: "EasyPaySdk", bundle: Bundle.easyPayBundle).instantiateViewController(withIdentifier: "TermAndConditionsVC") as? TermAndConditionsVC else {
1003
- print("Error: Could not find TermAndConditionsVC in EasyPaySdk storyboard.")
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: "EasyPaySdk", bundle: .easyPayBundle).instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
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: "EasyPaySdk", bundle: .easyPayBundle).instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
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 = EasyPaySdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
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 = EasyPaySdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
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 = EasyPaySdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
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 = EasyPaySdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
1896
+ let vc = easymerchantsdk.instantiateViewController(withIdentifier: "BillingInfoVC") as! BillingInfoVC
1897
1897
  vc.accountName = accountName
1898
1898
  vc.routingNumber = routingNumber
1899
1899
  vc.accountType = accountType
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'easymerchantsdk'
3
- s.version = '1.2.5'
3
+ s.version = '1.2.7'
4
4
  s.summary = 'A React Native SDK for Easy Merchant.'
5
5
  s.description = <<-DESC
6
6
  A React Native SDK to enable Easy Merchant functionality in mobile applications.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimrising/easymerchantsdk-react-native",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {