@jimrising/easymerchantsdk-react-native 1.4.5 → 1.4.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.
Files changed (30) hide show
  1. package/README.md +217 -140
  2. package/android/build/.transforms/20e1216b87bd06eaab3c9e5c68d4267a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactlibrary/RNEasymerchantsdkModule$1.dex +0 -0
  3. package/android/build/.transforms/20e1216b87bd06eaab3c9e5c68d4267a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactlibrary/RNEasymerchantsdkModule$2.dex +0 -0
  4. package/android/build/.transforms/20e1216b87bd06eaab3c9e5c68d4267a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactlibrary/RNEasymerchantsdkModule.dex +0 -0
  5. package/android/build/.transforms/e9a664a11ce12edf79cd87b1e07aa243/transformed/classes/classes_dex/classes.dex +0 -0
  6. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  7. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactlibrary/RNEasymerchantsdkModule$1.class +0 -0
  8. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactlibrary/RNEasymerchantsdkModule$2.class +0 -0
  9. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactlibrary/RNEasymerchantsdkModule.class +0 -0
  10. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactlibrary/RNEasymerchantsdkModule$1.class +0 -0
  11. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactlibrary/RNEasymerchantsdkModule$2.class +0 -0
  12. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactlibrary/RNEasymerchantsdkModule.class +0 -0
  13. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  14. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNEasymerchantsdkModule$1.class.uniqueId2 +0 -0
  15. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNEasymerchantsdkModule$2.class.uniqueId0 +0 -0
  16. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNEasymerchantsdkModule.class.uniqueId3 +0 -0
  17. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  18. package/android/build.gradle +1 -1
  19. package/android/src/main/java/com/reactlibrary/RNEasymerchantsdkModule.java +26 -79
  20. package/ios/Classes/EasyMerchantSdk.m +4 -0
  21. package/ios/Classes/EasyMerchantSdk.swift +8 -3
  22. package/ios/Models/Request.swift +31 -8
  23. package/ios/Pods/UserDefaults/UserStoreSingleton.swift +41 -15
  24. package/ios/Pods/ViewControllers/GrailPayVC.swift +2 -2
  25. package/ios/Pods/ViewControllers/OTPVerificationVC.swift +151 -111
  26. package/ios/Pods/ViewControllers/PaymentInformation/PaymentInfoVC.swift +861 -671
  27. package/ios/Pods/ViewControllers/ThreeDSecurePaymentDoneVC.swift +2 -2
  28. package/ios/easymerchantsdk.podspec +1 -1
  29. package/ios/easymerchantsdk.storyboard +124 -3
  30. package/package.json +1 -1
@@ -458,9 +458,9 @@ class ThreeDSecurePaymentDoneVC: BaseVC {
458
458
  self.lblPaymentLink.isHidden = false
459
459
  self.viewPaymentDetails.isHidden = false
460
460
 
461
- } else if !(chargeId.isEmpty || chargeId == "N/A") {
461
+ } else if status.lowercased() == "completed" {
462
462
  // Success case
463
- self.imgViewPaymentDone.image = UIImage(named: "payment_done_icon")
463
+ self.imgViewPaymentDone.image = UIImage(named: "payment_done_icon", in: .easyPayBundle, compatibleWith: nil)
464
464
  self.apiStatusCheckTimer?.invalidate()
465
465
  self.apiStatusCheckTimer = nil
466
466
  self.oneMinuteCountdownTimer?.cancel()
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'easymerchantsdk'
3
- s.version = '1.4.5'
3
+ s.version = '1.4.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.
@@ -2200,11 +2200,11 @@
2200
2200
  <objects>
2201
2201
  <viewController storyboardIdentifier="PaymentInfoVC" useStoryboardIdentifierAsRestorationIdentifier="YES" id="sRX-zZ-F0N" customClass="PaymentInfoVC" customModule="easymerchantsdk" customModuleProvider="target" sceneMemberID="viewController">
2202
2202
  <view key="view" contentMode="scaleToFill" id="RLB-d1-J29">
2203
- <rect key="frame" x="0.0" y="0.0" width="393" height="7000"/>
2203
+ <rect key="frame" x="0.0" y="0.0" width="393" height="6400"/>
2204
2204
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2205
2205
  <subviews>
2206
2206
  <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vcp-uX-dFS">
2207
- <rect key="frame" x="0.0" y="59" width="393" height="6907"/>
2207
+ <rect key="frame" x="0.0" y="59" width="393" height="6307"/>
2208
2208
  <subviews>
2209
2209
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rOc-Gf-DZV">
2210
2210
  <rect key="frame" x="0.0" y="0.0" width="393" height="6007"/>
@@ -8192,7 +8192,7 @@
8192
8192
  </constraints>
8193
8193
  </view>
8194
8194
  <navigationItem key="navigationItem" id="Q16-mv-2KD"/>
8195
- <size key="freeformSize" width="393" height="7000"/>
8195
+ <size key="freeformSize" width="393" height="6400"/>
8196
8196
  <connections>
8197
8197
  <outlet property="OTPView" destination="ADd-r2-1Pv" id="8GD-W4-6Qm"/>
8198
8198
  <outlet property="bankIconGrailPayBankView" destination="U8T-v5-5RA" id="gtR-JY-3Fo"/>
@@ -8243,6 +8243,7 @@
8243
8243
  <outlet property="cardExpiryTextField" destination="V8L-Xz-IEJ" id="xVd-2r-msw"/>
8244
8244
  <outlet property="cardNameTextField" destination="DGd-iI-SpY" id="2Hd-ig-qHv"/>
8245
8245
  <outlet property="cardNumberTextField" destination="xMl-Qf-UnF" id="HbL-Xz-Kcg"/>
8246
+ <outlet property="colVwPaymentMethodHeight" destination="tnA-PU-tZ9" id="MgN-03-7DA"/>
8246
8247
  <outlet property="collVwPayment" destination="yKd-Wz-4Dm" id="ItA-ic-dKk"/>
8247
8248
  <outlet property="emailView" destination="cZG-0t-AfS" id="fQ5-QU-SIo"/>
8248
8249
  <outlet property="grailPayBankLinkView" destination="BY8-dY-11P" id="zBG-vo-jck"/>
@@ -8324,6 +8325,7 @@
8324
8325
  <outlet property="tblViewSavedBankAccountsHeight" destination="cGV-Bg-bKo" id="jsi-lE-VdP"/>
8325
8326
  <outlet property="tblViewSavedCardListHeight" destination="SnI-dN-feq" id="IET-HR-Nfs"/>
8326
8327
  <outlet property="tblViewSavedCardsList" destination="wXq-tc-lPz" id="KuM-XZ-7gM"/>
8328
+ <outlet property="topConColViewPaymentMethodView" destination="gVB-Xa-9qu" id="ovQ-iB-Rns"/>
8327
8329
  <outlet property="txtFieldAccountName" destination="ure-Mb-qA2" id="e8u-YZ-hUI"/>
8328
8330
  <outlet property="txtFieldAccountNameNewAccountView" destination="fec-Sf-5lj" id="XVV-cQ-HjO"/>
8329
8331
  <outlet property="txtFieldAccountNumber" destination="o2V-o2-3dd" id="FmJ-lR-A63"/>
@@ -8539,6 +8541,123 @@
8539
8541
  </objects>
8540
8542
  <point key="canvasLocation" x="3554.9618320610684" y="764.78873239436621"/>
8541
8543
  </scene>
8544
+ <!--Custom Overlay-->
8545
+ <scene sceneID="r9h-BS-w1q">
8546
+ <objects>
8547
+ <viewController storyboardIdentifier="CustomOverlay" useStoryboardIdentifierAsRestorationIdentifier="YES" id="7Qy-3O-t0l" customClass="CustomOverlay" customModule="easymerchantsdk" customModuleProvider="target" sceneMemberID="viewController">
8548
+ <layoutGuides>
8549
+ <viewControllerLayoutGuide type="top" id="9ha-2w-qge"/>
8550
+ <viewControllerLayoutGuide type="bottom" id="qa6-0l-n2A"/>
8551
+ </layoutGuides>
8552
+ <view key="view" contentMode="scaleToFill" id="jTv-1I-wFZ">
8553
+ <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
8554
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
8555
+ <subviews>
8556
+ <view alpha="0.5" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mze-Wh-vhp">
8557
+ <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
8558
+ <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8559
+ </view>
8560
+ <view alpha="0.40000000596046448" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hvQ-uu-XVz" userLabel="CenterView">
8561
+ <rect key="frame" x="20" y="226" width="353" height="230"/>
8562
+ <color key="backgroundColor" white="1" alpha="0.40203331949999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8563
+ <constraints>
8564
+ <constraint firstAttribute="height" constant="230" id="PBN-cx-HbC"/>
8565
+ </constraints>
8566
+ </view>
8567
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Lys-mg-qTI">
8568
+ <rect key="frame" x="14" y="69" width="35" height="35"/>
8569
+ <constraints>
8570
+ <constraint firstAttribute="height" constant="35" id="MeT-zg-Hit"/>
8571
+ <constraint firstAttribute="width" constant="35" id="SeZ-xS-W3F"/>
8572
+ </constraints>
8573
+ <color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8574
+ <state key="normal" image="chevron.left" catalog="system">
8575
+ <preferredSymbolConfiguration key="preferredSymbolConfiguration" configurationType="pointSize" pointSize="20"/>
8576
+ </state>
8577
+ <connections>
8578
+ <action selector="didTapClose:" destination="7Qy-3O-t0l" eventType="touchUpInside" id="lSJ-ll-amy"/>
8579
+ </connections>
8580
+ </button>
8581
+ <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Scan Card (1/2)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DnT-bT-4Uy">
8582
+ <rect key="frame" x="143.66666666666666" y="77.666666666666671" width="105.66666666666666" height="18"/>
8583
+ <fontDescription key="fontDescription" type="system" pointSize="15"/>
8584
+ <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8585
+ <nil key="highlightedColor"/>
8586
+ </label>
8587
+ <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Rotate" translatesAutoresizingMaskIntoConstraints="NO" id="B7o-J8-JMD">
8588
+ <rect key="frame" x="349" y="74.666666666666671" width="24" height="24"/>
8589
+ <color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8590
+ <constraints>
8591
+ <constraint firstAttribute="width" constant="24" id="Kgr-hH-Ytu"/>
8592
+ <constraint firstAttribute="height" constant="24" id="Y1V-5E-Kb4"/>
8593
+ </constraints>
8594
+ </imageView>
8595
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vWc-y6-I5T">
8596
+ <rect key="frame" x="342" y="69" width="35" height="35"/>
8597
+ <constraints>
8598
+ <constraint firstAttribute="width" constant="35" id="8DQ-0c-R5M"/>
8599
+ <constraint firstAttribute="height" constant="35" id="hwd-2U-cKr"/>
8600
+ </constraints>
8601
+ <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
8602
+ <connections>
8603
+ <action selector="actionBtnRotate:" destination="7Qy-3O-t0l" eventType="touchUpInside" id="D2P-iV-SiS"/>
8604
+ </connections>
8605
+ </button>
8606
+ <stackView opaque="NO" contentMode="scaleToFill" alignment="bottom" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="80l-8W-OuB">
8607
+ <rect key="frame" x="24" y="526" width="345" height="22"/>
8608
+ <subviews>
8609
+ <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="exclamationmark.circle" catalog="system" translatesAutoresizingMaskIntoConstraints="NO" id="dJX-JI-Np5">
8610
+ <rect key="frame" x="0.0" y="0.66666666666666607" width="22" height="20.666666666666671"/>
8611
+ <color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8612
+ <constraints>
8613
+ <constraint firstAttribute="height" constant="22" id="0hz-9j-diy"/>
8614
+ <constraint firstAttribute="width" constant="22" id="Nsp-q2-gzl"/>
8615
+ </constraints>
8616
+ </imageView>
8617
+ <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Place the front side of your card inside the frame" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lfm-IR-UIb" userLabel="Scan Front Side">
8618
+ <rect key="frame" x="30" y="5" width="315" height="17"/>
8619
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
8620
+ <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8621
+ <nil key="highlightedColor"/>
8622
+ </label>
8623
+ </subviews>
8624
+ </stackView>
8625
+ </subviews>
8626
+ <viewLayoutGuide key="safeArea" id="zls-ut-7HB"/>
8627
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
8628
+ <constraints>
8629
+ <constraint firstItem="zls-ut-7HB" firstAttribute="trailing" secondItem="hvQ-uu-XVz" secondAttribute="trailing" constant="20" id="0oa-jG-ely"/>
8630
+ <constraint firstItem="80l-8W-OuB" firstAttribute="centerX" secondItem="jTv-1I-wFZ" secondAttribute="centerX" id="10h-Yl-lgh"/>
8631
+ <constraint firstItem="mze-Wh-vhp" firstAttribute="trailing" secondItem="zls-ut-7HB" secondAttribute="trailing" id="4C5-YV-cDQ"/>
8632
+ <constraint firstItem="80l-8W-OuB" firstAttribute="top" secondItem="hvQ-uu-XVz" secondAttribute="bottom" constant="70" id="5Gf-XS-Pjt"/>
8633
+ <constraint firstItem="mze-Wh-vhp" firstAttribute="leading" secondItem="zls-ut-7HB" secondAttribute="leading" id="8E5-yg-ydp"/>
8634
+ <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="Lys-mg-qTI" secondAttribute="trailing" constant="20" symbolic="YES" id="PG4-cn-HUK"/>
8635
+ <constraint firstAttribute="bottom" secondItem="mze-Wh-vhp" secondAttribute="bottom" id="Xs1-Ld-JZ7"/>
8636
+ <constraint firstItem="DnT-bT-4Uy" firstAttribute="centerY" secondItem="Lys-mg-qTI" secondAttribute="centerY" id="aqr-99-kOD"/>
8637
+ <constraint firstItem="zls-ut-7HB" firstAttribute="trailing" secondItem="B7o-J8-JMD" secondAttribute="trailing" constant="20" id="b5u-UH-CoM"/>
8638
+ <constraint firstItem="hvQ-uu-XVz" firstAttribute="leading" secondItem="zls-ut-7HB" secondAttribute="leading" constant="20" id="dW4-c1-h1r"/>
8639
+ <constraint firstItem="hvQ-uu-XVz" firstAttribute="top" secondItem="Lys-mg-qTI" secondAttribute="bottom" constant="122" id="iIa-VT-6fa"/>
8640
+ <constraint firstItem="Lys-mg-qTI" firstAttribute="leading" secondItem="jTv-1I-wFZ" secondAttribute="leading" constant="14" id="neQ-BJ-E8c"/>
8641
+ <constraint firstItem="mze-Wh-vhp" firstAttribute="top" secondItem="jTv-1I-wFZ" secondAttribute="top" id="niM-Eo-PaE"/>
8642
+ <constraint firstItem="DnT-bT-4Uy" firstAttribute="top" secondItem="vWc-y6-I5T" secondAttribute="bottom" constant="-26.333333333333329" id="oCK-lK-6qN"/>
8643
+ <constraint firstItem="Lys-mg-qTI" firstAttribute="top" secondItem="9ha-2w-qge" secondAttribute="bottom" constant="10" id="pVI-3t-BoG"/>
8644
+ <constraint firstItem="DnT-bT-4Uy" firstAttribute="centerX" secondItem="jTv-1I-wFZ" secondAttribute="centerX" id="pmn-jx-0Br"/>
8645
+ <constraint firstItem="B7o-J8-JMD" firstAttribute="centerY" secondItem="DnT-bT-4Uy" secondAttribute="centerY" id="uDb-wv-o0F"/>
8646
+ <constraint firstItem="zls-ut-7HB" firstAttribute="trailing" secondItem="vWc-y6-I5T" secondAttribute="trailing" constant="16" id="yiS-XG-HwO"/>
8647
+ </constraints>
8648
+ </view>
8649
+ <connections>
8650
+ <outlet property="btnRotate" destination="vWc-y6-I5T" id="TCo-fn-8bU"/>
8651
+ <outlet property="centerView" destination="hvQ-uu-XVz" id="V85-RJ-Ub3"/>
8652
+ <outlet property="imgProcessing" destination="dJX-JI-Np5" id="qad-HQ-sOB"/>
8653
+ <outlet property="lblScanCardCount" destination="DnT-bT-4Uy" id="vyv-Ut-nYY"/>
8654
+ <outlet property="tooltipLabel" destination="Lfm-IR-UIb" id="mFg-8P-9EM"/>
8655
+ </connections>
8656
+ </viewController>
8657
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dVT-Uf-JCq" userLabel="First Responder" sceneMemberID="firstResponder"/>
8658
+ </objects>
8659
+ <point key="canvasLocation" x="2694" y="-727"/>
8660
+ </scene>
8542
8661
  <!--Grail PayVC-->
8543
8662
  <scene sceneID="OTL-Ro-rHx">
8544
8663
  <objects>
@@ -8864,11 +8983,13 @@
8864
8983
  </scene>
8865
8984
  </scenes>
8866
8985
  <resources>
8986
+ <image name="Rotate" width="24" height="24"/>
8867
8987
  <image name="building.columns.fill" catalog="system" width="128" height="112"/>
8868
8988
  <image name="calendar" catalog="system" width="128" height="107"/>
8869
8989
  <image name="camera" catalog="system" width="128" height="93"/>
8870
8990
  <image name="checkmark.square.fill" catalog="system" width="128" height="114"/>
8871
8991
  <image name="chevron.down" catalog="system" width="128" height="70"/>
8992
+ <image name="chevron.left" catalog="system" width="97" height="128"/>
8872
8993
  <image name="circle" catalog="system" width="128" height="123"/>
8873
8994
  <image name="circle.inset.filled" catalog="system" width="128" height="123"/>
8874
8995
  <image name="creditcard" catalog="system" width="128" height="88"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimrising/easymerchantsdk-react-native",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {