@jimrising/easymerchantsdk-react-native 1.7.1 → 1.7.3
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/README.md +1 -1
- package/android/build/.transforms/15b6a8a60a6b32d0dcaf609723cf365b/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/8508f1428f740032c45a43f48b1bbe1e/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactlibrary/RNEasymerchantsdkModule$1.dex +0 -0
- package/android/build/.transforms/8508f1428f740032c45a43f48b1bbe1e/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactlibrary/RNEasymerchantsdkModule$2.dex +0 -0
- package/android/build/.transforms/8508f1428f740032c45a43f48b1bbe1e/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactlibrary/RNEasymerchantsdkModule.dex +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactlibrary/RNEasymerchantsdkModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactlibrary/RNEasymerchantsdkModule$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactlibrary/RNEasymerchantsdkModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactlibrary/RNEasymerchantsdkModule$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactlibrary/RNEasymerchantsdkModule$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactlibrary/RNEasymerchantsdkModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNEasymerchantsdkModule$1.class.uniqueId0 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNEasymerchantsdkModule$2.class.uniqueId2 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNEasymerchantsdkModule.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNEasymerchantsdkPackage.class.uniqueId3 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/src/main/java/com/reactlibrary/RNEasymerchantsdkModule.java +1 -1
- package/ios/Classes/EasyMerchantSdk.swift +1 -1
- package/ios/Pods/ViewControllers/PaymentInformation/PaymentInfoVC.swift +99 -99
- package/ios/easymerchantsdk.podspec +1 -1
- package/ios/easymerchantsdk.storyboard +82 -200
- package/package.json +1 -1
package/README.md
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Thu Jun 26 20:04:20 IST 2025
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -97,7 +97,7 @@ public class RNEasymerchantsdkModule extends ReactContextBaseJavaModule {
|
|
|
97
97
|
jsonConfigMap.hasKey("showSubmitButton") ? jsonConfigMap.getBoolean("showSubmitButton") : true
|
|
98
98
|
);
|
|
99
99
|
jsonConfig.put("emailEditable",
|
|
100
|
-
jsonConfigMap.hasKey("emailEditable") ? jsonConfigMap.
|
|
100
|
+
jsonConfigMap.hasKey("emailEditable") ? jsonConfigMap.getBoolean("emailEditable") : false
|
|
101
101
|
);
|
|
102
102
|
jsonConfig.put("email",
|
|
103
103
|
jsonConfigMap.hasKey("email") ? jsonConfigMap.getString("email") : ""
|
|
@@ -227,9 +227,9 @@ public class EasyMerchantSdkPlugin: NSObject, RCTBridgeModule {
|
|
|
227
227
|
showReceipt: showReceipt,
|
|
228
228
|
showTotal: showTotal,
|
|
229
229
|
showSubmitButton: showSubmitButton,
|
|
230
|
-
isEmail : isEmail,
|
|
231
230
|
referenceID: enable3DS,
|
|
232
231
|
referenceToken: nil,
|
|
232
|
+
isEmail : isEmail,
|
|
233
233
|
email:email,
|
|
234
234
|
name: name
|
|
235
235
|
)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
import UIKit
|
|
9
|
-
import BlinkCard
|
|
9
|
+
//import BlinkCard
|
|
10
10
|
|
|
11
11
|
struct PaymentsData {
|
|
12
12
|
var name = String()
|
|
@@ -366,7 +366,7 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
366
366
|
var isFrom = String()
|
|
367
367
|
|
|
368
368
|
//Blink Card
|
|
369
|
-
var blinkCardRecognizer: MBCBlinkCardRecognizer!
|
|
369
|
+
// var blinkCardRecognizer: MBCBlinkCardRecognizer!
|
|
370
370
|
|
|
371
371
|
// Variables for Card Scanning Data Back
|
|
372
372
|
var cardNumber: String?
|
|
@@ -4874,38 +4874,38 @@ class PaymentInfoVC: BaseVC, BillingInfoVCDelegate {
|
|
|
4874
4874
|
|
|
4875
4875
|
//MARK: - Card Scan Button Action
|
|
4876
4876
|
@IBAction func actionButtonScanCard(_ sender: UIButton) {
|
|
4877
|
-
// Validate BlinkCard License
|
|
4878
|
-
let licenseErrorMessage = BlinkCardHelper.setupLicense()
|
|
4879
|
-
if !licenseErrorMessage.isEmpty {
|
|
4880
|
-
// Show alert if the license is invalid or expired
|
|
4881
|
-
showLicenseErrorAlert(message: licenseErrorMessage)
|
|
4882
|
-
return
|
|
4883
|
-
}
|
|
4884
|
-
|
|
4885
|
-
// Proceed with card scanning if the license is valid
|
|
4886
|
-
blinkCardRecognizer = MBCBlinkCardRecognizer()
|
|
4887
|
-
blinkCardRecognizer.returnFullDocumentImage = true
|
|
4888
|
-
|
|
4889
|
-
let recognizerList = [blinkCardRecognizer!]
|
|
4890
|
-
let recognizerCollection = MBCRecognizerCollection(recognizers: recognizerList)
|
|
4891
|
-
|
|
4892
|
-
let customOverlayViewController: CustomOverlay = CustomOverlay.initFromStoryboard()
|
|
4893
|
-
|
|
4894
|
-
// Reconfigure recognizers with the overlay
|
|
4895
|
-
customOverlayViewController.reconfigureRecognizers(recognizerCollection)
|
|
4896
|
-
|
|
4897
|
-
// Create the recognizer runner view controller with custom overlay
|
|
4898
|
-
guard let recognizerRunnerViewController =
|
|
4899
|
-
MBCViewControllerFactory.recognizerRunnerViewController(withOverlayViewController: customOverlayViewController) else {
|
|
4900
|
-
showLicenseErrorAlert(message: "Failed to initialize the recognizer view controller.")
|
|
4901
|
-
return
|
|
4902
|
-
}
|
|
4903
|
-
|
|
4904
|
-
customOverlayViewController.delegate = self
|
|
4905
|
-
recognizerRunnerViewController.modalPresentationStyle = .fullScreen
|
|
4906
|
-
|
|
4907
|
-
// Present the recognizer runner view controller
|
|
4908
|
-
self.present(recognizerRunnerViewController, animated: true, completion: nil)
|
|
4877
|
+
// // Validate BlinkCard License
|
|
4878
|
+
// let licenseErrorMessage = BlinkCardHelper.setupLicense()
|
|
4879
|
+
// if !licenseErrorMessage.isEmpty {
|
|
4880
|
+
// // Show alert if the license is invalid or expired
|
|
4881
|
+
// showLicenseErrorAlert(message: licenseErrorMessage)
|
|
4882
|
+
// return
|
|
4883
|
+
// }
|
|
4884
|
+
//
|
|
4885
|
+
// // Proceed with card scanning if the license is valid
|
|
4886
|
+
// blinkCardRecognizer = MBCBlinkCardRecognizer()
|
|
4887
|
+
// blinkCardRecognizer.returnFullDocumentImage = true
|
|
4888
|
+
//
|
|
4889
|
+
// let recognizerList = [blinkCardRecognizer!]
|
|
4890
|
+
// let recognizerCollection = MBCRecognizerCollection(recognizers: recognizerList)
|
|
4891
|
+
//
|
|
4892
|
+
// let customOverlayViewController: CustomOverlay = CustomOverlay.initFromStoryboard()
|
|
4893
|
+
//
|
|
4894
|
+
// // Reconfigure recognizers with the overlay
|
|
4895
|
+
// customOverlayViewController.reconfigureRecognizers(recognizerCollection)
|
|
4896
|
+
//
|
|
4897
|
+
// // Create the recognizer runner view controller with custom overlay
|
|
4898
|
+
// guard let recognizerRunnerViewController =
|
|
4899
|
+
// MBCViewControllerFactory.recognizerRunnerViewController(withOverlayViewController: customOverlayViewController) else {
|
|
4900
|
+
// showLicenseErrorAlert(message: "Failed to initialize the recognizer view controller.")
|
|
4901
|
+
// return
|
|
4902
|
+
// }
|
|
4903
|
+
//
|
|
4904
|
+
// customOverlayViewController.delegate = self
|
|
4905
|
+
// recognizerRunnerViewController.modalPresentationStyle = .fullScreen
|
|
4906
|
+
//
|
|
4907
|
+
// // Present the recognizer runner view controller
|
|
4908
|
+
// self.present(recognizerRunnerViewController, animated: true, completion: nil)
|
|
4909
4909
|
}
|
|
4910
4910
|
|
|
4911
4911
|
private func showLicenseErrorAlert(message: String) {
|
|
@@ -10828,68 +10828,68 @@ extension PaymentInfoVC: UITextFieldDelegate {
|
|
|
10828
10828
|
}
|
|
10829
10829
|
|
|
10830
10830
|
//MARK: - BlinkCard
|
|
10831
|
-
extension PaymentInfoVC: MBCBlinkCardOverlayViewControllerDelegate {
|
|
10832
|
-
func blinkCardOverlayViewControllerDidFinishScanning(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController, state: MBCRecognizerResultState) {
|
|
10833
|
-
/** This is done on background thread */
|
|
10834
|
-
blinkCardOverlayViewController.recognizerRunnerViewController?.pauseScanning()
|
|
10835
|
-
|
|
10836
|
-
var message: String = ""
|
|
10837
|
-
var title: String = ""
|
|
10838
|
-
|
|
10839
|
-
if blinkCardRecognizer.result.resultState == .valid {
|
|
10840
|
-
title = "Payment card"
|
|
10841
|
-
|
|
10842
|
-
let fullDocumentImage: UIImage! = blinkCardRecognizer.result.firstSideFullDocumentImage?.image
|
|
10843
|
-
print("Got payment card image with width: \(fullDocumentImage.size.width), height: \(fullDocumentImage.size.height)")
|
|
10844
|
-
|
|
10845
|
-
// Save the string representation of the code
|
|
10846
|
-
message = blinkCardRecognizer.result.description
|
|
10847
|
-
}
|
|
10848
|
-
|
|
10849
|
-
/** Needs to be called on main thread beacuse everything prior is on background thread */
|
|
10850
|
-
DispatchQueue.main.async {
|
|
10851
|
-
// present the alert view with scanned results
|
|
10852
|
-
|
|
10853
|
-
let alertController: UIAlertController = UIAlertController.init(title: title, message: message, preferredStyle: .alert)
|
|
10854
|
-
|
|
10855
|
-
let okAction: UIAlertAction = UIAlertAction.init(title: "OK", style: .default,
|
|
10856
|
-
handler: { (action) -> Void in
|
|
10857
|
-
self.dismiss(animated: true, completion: nil)
|
|
10858
|
-
})
|
|
10859
|
-
alertController.addAction(okAction)
|
|
10860
|
-
blinkCardOverlayViewController.present(alertController, animated: true, completion: nil)
|
|
10861
|
-
}
|
|
10862
|
-
}
|
|
10863
|
-
|
|
10864
|
-
func blinkCardOverlayViewControllerDidTapClose(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController) {
|
|
10865
|
-
self.dismiss(animated: true, completion: nil)
|
|
10866
|
-
}
|
|
10867
|
-
|
|
10868
|
-
func blinkCardOverlayViewControllerDidFinishEditing(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController, editResult: MBCBlinkCardEditResult) {
|
|
10869
|
-
blinkCardOverlayViewController.recognizerRunnerViewController?.pauseScanning()
|
|
10870
|
-
/** Needs to be called on main thread beacuse everything prior is on background thread */
|
|
10871
|
-
DispatchQueue.main.async {
|
|
10872
|
-
// present the alert view with scanned results
|
|
10873
|
-
let alertController: UIAlertController = UIAlertController.init(title: "BlinkCard Edit Results", message: editResult.description, preferredStyle: .alert)
|
|
10874
|
-
|
|
10875
|
-
let okAction: UIAlertAction = UIAlertAction.init(title: "OK", style: .default,
|
|
10876
|
-
handler: { (action) -> Void in
|
|
10877
|
-
self.dismiss(animated: true, completion: nil)
|
|
10878
|
-
})
|
|
10879
|
-
alertController.addAction(okAction)
|
|
10880
|
-
blinkCardOverlayViewController.blinkCardEditViewController?.present(alertController, animated: true, completion: nil)
|
|
10881
|
-
}
|
|
10882
|
-
}
|
|
10883
|
-
|
|
10884
|
-
}
|
|
10885
|
-
|
|
10886
|
-
extension PaymentInfoVC: CustomOverlayDelegate {
|
|
10887
|
-
func didFinishScanningCard(cardNumber: String, expiryDate: String, cvv: String, nameOnCard: String) {
|
|
10888
|
-
// Update the text fields with scanned details
|
|
10889
|
-
cardNumberTextField.text = cardNumber
|
|
10890
|
-
cardExpiryTextField.text = expiryDate
|
|
10891
|
-
cardCvvTextField.text = cvv
|
|
10892
|
-
cardNameTextField.text = nameOnCard
|
|
10893
|
-
}
|
|
10894
|
-
|
|
10895
|
-
}
|
|
10831
|
+
//extension PaymentInfoVC: MBCBlinkCardOverlayViewControllerDelegate {
|
|
10832
|
+
// func blinkCardOverlayViewControllerDidFinishScanning(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController, state: MBCRecognizerResultState) {
|
|
10833
|
+
// /** This is done on background thread */
|
|
10834
|
+
// blinkCardOverlayViewController.recognizerRunnerViewController?.pauseScanning()
|
|
10835
|
+
//
|
|
10836
|
+
// var message: String = ""
|
|
10837
|
+
// var title: String = ""
|
|
10838
|
+
//
|
|
10839
|
+
// if blinkCardRecognizer.result.resultState == .valid {
|
|
10840
|
+
// title = "Payment card"
|
|
10841
|
+
//
|
|
10842
|
+
// let fullDocumentImage: UIImage! = blinkCardRecognizer.result.firstSideFullDocumentImage?.image
|
|
10843
|
+
// print("Got payment card image with width: \(fullDocumentImage.size.width), height: \(fullDocumentImage.size.height)")
|
|
10844
|
+
//
|
|
10845
|
+
// // Save the string representation of the code
|
|
10846
|
+
// message = blinkCardRecognizer.result.description
|
|
10847
|
+
// }
|
|
10848
|
+
//
|
|
10849
|
+
// /** Needs to be called on main thread beacuse everything prior is on background thread */
|
|
10850
|
+
// DispatchQueue.main.async {
|
|
10851
|
+
// // present the alert view with scanned results
|
|
10852
|
+
//
|
|
10853
|
+
// let alertController: UIAlertController = UIAlertController.init(title: title, message: message, preferredStyle: .alert)
|
|
10854
|
+
//
|
|
10855
|
+
// let okAction: UIAlertAction = UIAlertAction.init(title: "OK", style: .default,
|
|
10856
|
+
// handler: { (action) -> Void in
|
|
10857
|
+
// self.dismiss(animated: true, completion: nil)
|
|
10858
|
+
// })
|
|
10859
|
+
// alertController.addAction(okAction)
|
|
10860
|
+
// blinkCardOverlayViewController.present(alertController, animated: true, completion: nil)
|
|
10861
|
+
// }
|
|
10862
|
+
// }
|
|
10863
|
+
//
|
|
10864
|
+
// func blinkCardOverlayViewControllerDidTapClose(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController) {
|
|
10865
|
+
// self.dismiss(animated: true, completion: nil)
|
|
10866
|
+
// }
|
|
10867
|
+
//
|
|
10868
|
+
// func blinkCardOverlayViewControllerDidFinishEditing(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController, editResult: MBCBlinkCardEditResult) {
|
|
10869
|
+
// blinkCardOverlayViewController.recognizerRunnerViewController?.pauseScanning()
|
|
10870
|
+
// /** Needs to be called on main thread beacuse everything prior is on background thread */
|
|
10871
|
+
// DispatchQueue.main.async {
|
|
10872
|
+
// // present the alert view with scanned results
|
|
10873
|
+
// let alertController: UIAlertController = UIAlertController.init(title: "BlinkCard Edit Results", message: editResult.description, preferredStyle: .alert)
|
|
10874
|
+
//
|
|
10875
|
+
// let okAction: UIAlertAction = UIAlertAction.init(title: "OK", style: .default,
|
|
10876
|
+
// handler: { (action) -> Void in
|
|
10877
|
+
// self.dismiss(animated: true, completion: nil)
|
|
10878
|
+
// })
|
|
10879
|
+
// alertController.addAction(okAction)
|
|
10880
|
+
// blinkCardOverlayViewController.blinkCardEditViewController?.present(alertController, animated: true, completion: nil)
|
|
10881
|
+
// }
|
|
10882
|
+
// }
|
|
10883
|
+
//
|
|
10884
|
+
//}
|
|
10885
|
+
//
|
|
10886
|
+
//extension PaymentInfoVC: CustomOverlayDelegate {
|
|
10887
|
+
// func didFinishScanningCard(cardNumber: String, expiryDate: String, cvv: String, nameOnCard: String) {
|
|
10888
|
+
// // Update the text fields with scanned details
|
|
10889
|
+
// cardNumberTextField.text = cardNumber
|
|
10890
|
+
// cardExpiryTextField.text = expiryDate
|
|
10891
|
+
// cardCvvTextField.text = cvv
|
|
10892
|
+
// cardNameTextField.text = nameOnCard
|
|
10893
|
+
// }
|
|
10894
|
+
//
|
|
10895
|
+
//}
|