#Ronit
1 messages · Page 1 of 1 (latest)
that's unfortunately a really vague question
it really depends but for example something like this works in certain contexts
if let error = error {
print("Payment failed: \n\(error.localizedDescription)")
let fullError = error as NSError
print(fullError.code)
print(fullError.description)
dump(fullError.userInfo)
}
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
is this alway return me any code that i am getting in SDK like... no reader is found or something simillar to this
what integration are you using?
ios, bluetooth M2 reader
i did take reference from https://stripe.dev/stripe-terminal-ios/docs/Enums/SCPError.html#/c:@E@SCPError@SCPErrorLocationServicesDisabled where there is always one error code each error
the code I shared above that casts an error that you catch to an NSError and prints details of it is quite helpful, did you try it at all?
no i did not tried before i will try it and check that