iZettle / sdk-ios

Add card payments from Zettle to your own app
https://developer.zettle.com/docs/ios-sdk
Other
82 stars 38 forks source link

com.izettle.basic.error #342

Closed jack1708 closed 1 year ago

jack1708 commented 3 years ago

Hi Zettle SDK Team

We require some help with integrating the Zettle payment system with our app please, we are receiving the error ‘com.izettle.basic.error’, could you advise please ?

Kind regards

Jack

valkovsky commented 3 years ago

Hey!

You can get two basic errors:

  1. com.izettle.basic.error, code=1. Payment flow was cancelled by a user. This happens when Cancel or Close button is pressed in the navigation bar before a card was read by the card reader.
  2. com.izettle.basic.error, code=2. Payment flow was aborted by a timeout during reader update. This happens when the reader needs to be updated, and during the update something went wrong and reader didn't respond to the sdk in time. This problem is something that is handled internally (reader update automatically restarts if needed) and the error is returned just to notify about the problem.

Both errors should be treated as a failed payment attempt.

I hope this clarifies things a bit!

Best regards, Andrey

dmilovanovi commented 3 years ago

Hi @jack1708

We haven't heard back from you on ticket API-430 and it got automatically closed, preventing us from receiving further notifications for your replies.

From the pictures you have shared there we could see that you are passing the error.Domain which is 'com.izettle.basic.error'. What Andrei suggested above is to use error.code to get the error code to see what is going on.

Also, we noticed that you are using an older SDK version, because you are still using API key to initialize the SDK.

Here you can find the latest version of the iOS SDK: https://github.com/iZettle/sdk-ios/releases and we have a guide to help you complete the update: https://github.com/iZettle/sdk-ios/blob/master/Migration%20Guide/sdk-3.0-migration-guide.md.

Regards

jack1708 commented 3 years ago

Thank you for your response.

I have updated the development team, can you please keep the ticket open or re-open the ticket for now?

Kind regards

Jack Riches Director

Nova Catering Repairs

Mobile: 07801 254 018 Email: @.*** www.novarepairs.co.uk

Unit 8 Two Woods Trading Estate, Talbots Lane, Brierley Hill, West Midlands, DY5 2YX

On Mon, 21 Jun 2021, 14:21 Dejan Milovanovic, @.***> wrote:

Hi @jack1708 https://github.com/jack1708

We haven't heard back from you on ticket API-430 and it got automatically closed.

From the pictures you have shared there we could see that you are passing the error.Domain which is 'com.izettle.basic.error'. What Andrei suggested above is to use error.code to get the error code to see what is going on.

Also, we noticed that you are using an older SDK version, because you are still using API key to initialize the SDK.

Here you can find the latest version of the iOS SDK: https://github.com/iZettle/sdk-ios/releases and we have a guide to help you complete the update: https://github.com/iZettle/sdk-ios/blob/master/Migration%20Guide/sdk-3.0-migration-guide.md .

Regards

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iZettle/sdk-ios/issues/342#issuecomment-865028609, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUBR5FQ3JQEWE3QZDLTJCNTTT44F5ANCNFSM44Y4GJSA .

davidzettle commented 1 year ago

Closing ticket as no further update was posted.