-
Notifications
You must be signed in to change notification settings - Fork 17
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
Reason when Checkout fails #38
Comments
Hi, Here you can find the SDK checkout response class documentation. Most of the interesting stuff is inside the You can debug the example app in Xcode and put a breakpoint at line 80 of SwiftSumupPlugin.swift to see it yourself. |
I believe you, no problem. |
Most of the errors are automatically shown to the user by the SDK, for example if you try to perform a checkout with an amount lower than the minimum allowed you will see an error screen, and the same happens for other errors. In this way the user should always have a visual feedback of the error, but I agree that an error code would be handy. The android SDK provides error codes. |
Ok that makes it a little bit better - at least for the user. |
Correct. See #26 |
I've just filed an issue on the iOS SDK. Let's see what they say. |
Hi there,
i wonder if the SumUp SDK is returning some sort of reason to this plugin when a checkout fails, and if yes, if that reason could be added into SumupPluginCheckoutResponse as a new field (and included in
SumupPluginCheckoutResponse.fromMap(...)
)?Best would be an enum with types like userAbortedPayment, wrongCurrency, amountTooSmall, etc.
At the moment the plugin only says that
success
is false which is quite a limited information and doesn't help much when trying to analyze problems around the payment process.The text was updated successfully, but these errors were encountered: