KEMBAR78
Stripe Terminal SDK iOS - An unexpected SDK error occurred (5000) [Offline transaction] · Issue #355 · stripe/stripe-terminal-ios · GitHub
Skip to content

Stripe Terminal SDK iOS - An unexpected SDK error occurred (5000) [Offline transaction] #355

@VikasSahu

Description

@VikasSahu

The Stripe Terminal iOS SDK throws persistent "unexpected SDK error" (code 5000) when attempting offline transactions after a successful online transaction followed by network disconnection. The error becomes persistent, preventing any new payment intent creation indefinitely.

First I get while collecting/confirming the payment -
<SCPConfirmPaymentIntentError: 0x132fce940; code = 5000; message = An unexpected SDK error occurred.; requestId = (null); requestError = 0x14689a580; paymentIntent = (null): 0x0>

After the above error when I try to create new payment intent I always get below error -
Error Domain=com.stripe-terminal Code=5000 "An unexpected SDK error occurred." UserInfo={com.stripe-terminal:InternalErrorCode=5100, NSLocalizedDescription=An unexpected SDK error occurred., com.stripe-terminal:Message=An unexpected SDK error occurred.}

Detailed Reproduction Steps -
Initial Setup: Initialize Stripe Terminal SDK and connect to M2 reader with internet connectivity
Successful Online Transaction: Complete one successful online payment transaction in the background
Network Disconnection: Manually disable internet connectivity (WiFi/cellular)
Wait Period: Wait approximately 10 minutes with app running in background
Attempt Offline Transaction: Tap card on reader to initiate new payment
Primary Failure: Transaction fails with SDK error 5000
Cascading Failures: All subsequent createPaymentIntent calls fail with same error
Persistent State: Error persists indefinitely until app restart

Note : If we do all these in foreground state offline transactions work very well even if use in background along with internet connection it works fine.

Environment
Platform: iOS
SDK: Stripe Terminal iOS SDK (version 4.3.0)
Reader: M2 Terminal
Network: WiFi/Cellular with manual disconnection

It seems some internal SDK error as it is working properly with foreground or with online tarnsactions. Please help me.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions