Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnexpectedSdkError in IOS 18 Beta #807

Closed
arjunAbcd opened this issue Sep 9, 2024 · 8 comments
Closed

UnexpectedSdkError in IOS 18 Beta #807

arjunAbcd opened this issue Sep 9, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@arjunAbcd
Copy link

arjunAbcd commented Sep 9, 2024

Describe the bug

Getting error {"code": "UnexpectedSdkError", "message": "An unexpected SDK error occurred."} while making payment through mPOS machine and only if amount greater than $999.99 .Otherwise if amount less than $999.99, it works well. No issues on Android.
Found this issue only on IOS 18 Beta .
I have been using the beta version 0.0.1-beta.13 and tested by updating to beta 0.0.1-beta.20 (latest) , issue still exists.

To Reproduce

To reproduce - By making transaction through mPOS machine and the amount should be greater than $999.99

Screenshot 2024-09-09 at 11 51 04 AM

Stripe Terminal React Native SDK version

  • ^0.0.1-beta.20

Smartphone :

  • Tested Device: Iphone Xs Max
  • OS: iOS 18 Beta
@nazli-stripe
Copy link
Collaborator

hey @arjunAbcd this is due to a bug our SDK has on iOS 18. We are working on a hotfix release for this week specifically targeting this issue.

@nazli-stripe nazli-stripe self-assigned this Sep 12, 2024
@nazli-stripe nazli-stripe added the bug Something isn't working label Sep 13, 2024
@nazli-stripe
Copy link
Collaborator

nazli-stripe commented Sep 13, 2024

@arjunAbcd: beta.21 was just released and addresses this issue. Can you give it a try and let us know if you are still running into it?

@Eonfuzz
Copy link

Eonfuzz commented Sep 17, 2024

@arjunAbcd: beta.21 was just released and addresses this issue. Can you give it a try and let us know if you are still running into it?

We're seeing a similar error for iOS devices when calling CollectPayment.

Our steps to reproduce:

  1. We connect to the localmobile reader after login (This works fine)
  2. When we reach the collectPaymentMethod stage when taking payments, the useStripTerminal hook
    onDidReportUnexpectedReaderDisconnect throws the following error:
    {"message":"Reader has been disconnected unexpectedly","code":"UnexpectedSdkError"}
  3. The collectPaymentMethod stalls and sits there indefinitely as it cannot take payments.

We've reproduced this on:
IPhone 13, ios version 17.2.1
https://github.com/stripe/stripe-terminal-react-native@v0.0.1-beta.21

Any idea on how we could further debug / get access to the internal sdk error?

@arjunAbcd
Copy link
Author

@arjunAbcd: beta.21 was just released and addresses this issue. Can you give it a try and let us know if you are still running into it?
Thanks for the update @nazli-stripe , I will check and update

@arjunAbcd
Copy link
Author

@arjunAbcd: beta.21 was just released and addresses this issue. Can you give it a try and let us know if you are still running into it?

Tested on IOS 18 Beta and IOS 15.0 , it working fine now with beta.21

@arjunAbcd
Copy link
Author

@arjunAbcd: beta.21 was just released and addresses this issue. Can you give it a try and let us know if you are still running into it?

We're seeing a similar error for iOS devices when calling CollectPayment.

Our steps to reproduce:

  1. We connect to the localmobile reader after login (This works fine)
  2. When we reach the collectPaymentMethod stage when taking payments, the useStripTerminal hook
    onDidReportUnexpectedReaderDisconnect throws the following error:
    {"message":"Reader has been disconnected unexpectedly","code":"UnexpectedSdkError"}
  3. The collectPaymentMethod stalls and sits there indefinitely as it cannot take payments.

We've reproduced this on: IPhone 13, ios version 17.2.1 https://github.com/stripe/stripe-terminal-react-native@v0.0.1-beta.21

Any idea on how we could further debug / get access to the internal sdk error?

Are you getting the mentioned error on other IOS version/device ?

@nazli-stripe
Copy link
Collaborator

@Eonfuzz i think what you are reporting is a different issue than what @arjunAbcd is describing. Do you mind opening a new issue and include serial number for the device you are using so we can take a look?

The SDK had a known bug with amounts over 99999 on iOS 18 which has been fixed with beta.21 release now as confirmed by @arjunAbcd so closing this issue.

@Eonfuzz
Copy link

Eonfuzz commented Sep 18, 2024

@Eonfuzz i think what you are reporting is a different issue than what @arjunAbcd is describing. Do you mind opening a new issue and include serial number for the device you are using so we can take a look?

The SDK had a known bug with amounts over 99999 on iOS 18 which has been fixed with beta.21 release now as confirmed by @arjunAbcd so closing this issue.

Thanks Nazli. it was a customer issue failing to describe the error correctly. v21 solved my issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants