I'm trying to open the card entry page via onStartCardEntry (Card entry flow with buyer verification) but my app crashes before loading this page. I have everything well configured (square location ID and api key set) but looks like I'm missing something in earlier configuration.
This works fine in IOS but not in Android.
Here is the log:
Fatal Exception: java.lang.IllegalArgumentException: No enum constant sqip.Country.Australia
at java.lang.Enum.valueOf(Enum.java:257)
at sqip.Country.valueOf(:2)
at sqip.react.CardEntryModule.getContact(CardEntryModule.java:272)
at sqip.react.CardEntryModule.startCardEntryFlowWithVerification(CardEntryModule.java:223)
at java.lang.reflect.Method.invoke(Method.java)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:237)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
at java.lang.Thread.run(Thread.java:919)
To Reproduce
Steps to reproduce the issue.
Initialise the SDK
call await SQIPCardEntry.startCardEntryFlowWithBuyerVerification via function onStartCardEntry()
I press the button which enacts the function described above, passing info to the cardEntryConfig variable. The Card Entry screen should then open and allow me to enter card details to generate a Nonce.
Environment (please complete the following information):
platform: Android
OS and version: 2 Physical Devices running Android 11 & Android 10, Simulator running Android 9 (All have same issue)
dev environment: Mac OS X
In-App Payments Plugin version: 1.5.0
System:
OS: macOS 11.6
CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
Memory: 64.09 MB / 4.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.10.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.24.0 - /usr/local/bin/npm
Watchman: 2021.10.04.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 29, 31
Build Tools: 29.0.2, 31.0.0
System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7678000
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
Languages:
Java: 11.0.10 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.2 => 0.64.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Describe the issue
I'm trying to open the card entry page via onStartCardEntry (Card entry flow with buyer verification) but my app crashes before loading this page. I have everything well configured (square location ID and api key set) but looks like I'm missing something in earlier configuration.
This works fine in IOS but not in Android.
Here is the log:
To Reproduce
Steps to reproduce the issue.
call
await SQIPCardEntry.startCardEntryFlowWithBuyerVerification
via function onStartCardEntry()Here the piece of code that reproduce the issue.
-->
Expected behavior
I press the button which enacts the function described above, passing info to the cardEntryConfig variable. The Card Entry screen should then open and allow me to enter card details to generate a Nonce.
Environment (please complete the following information):
In-App Payments Plugin version: 1.5.0
System: OS: macOS 11.6 CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz Memory: 64.09 MB / 4.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.10.0 - /usr/local/bin/node Yarn: Not Found npm: 7.24.0 - /usr/local/bin/npm Watchman: 2021.10.04.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 29, 31 Build Tools: 29.0.2, 31.0.0 System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7678000 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 11.0.10 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.2 => 0.64.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found