-
Notifications
You must be signed in to change notification settings - Fork 131
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
Failed to present payment controller #142
Comments
Since we started logging this error(21 July) to sentry 800 people have encountered this error. It would be great to get an answer ASAP @JlUgia |
Hi everyone, this error surfaces when the payment UI is shown unsuccessfully. As you can see in the source, this is a 1:1 response from the payments SDK. Some users facing the same issue natively connect the problem with unexpected or malformed configuration sent through the parameters (eg.: malformed decimal numbers). Are you able to gather additional information to determine the origin of the problem? (eg.: logs with the configuration used during failures). |
This only happens occasionally and if we call our handler function again with same parameters it works most of the time, but it takes some time for the first error to throw and therefore not our ideal solution. We are certain that are configuration is not the factor in this error. @JlUgia |
You'll need additional telemetry to find out the root cause for the issue. Note that, most certainly, if the configuration has not changed, this issue is not related to this package, but with the native Apple Pay SDK. I'd suggest overriding the
Feel free to share any findings. In addition, have you confirmed that certain price amounts are not causing trouble? |
We are experiencing the same issue. This issue happens more often if app gets to background for some time before proceeding with apple pay. |
Any update on this issue? |
I'm also facing this issue, |
We resolved the issue through the workaround - by retrying the call one more time if the error appears |
we are also facing the same problem.
I get an error when running |
any updates? |
PR #200 is extending the payment flow for iOS. I suggest that we revisit this issue once the change is published. |
PlatformException(paymentError, Failed to present payment controller, null, null) |
Any updates to this? This also happens to both GooglePay and ApplePay where calling |
On occasion showPaymentSelecter throws 'PlatformException(paymentError, Failed to present payment controller, null, null)' when opening paymentSelector with Apple Pay after several seconds of waiting.
Have tested using Flutter version 3.0.4 and 2.8.1. With pay version 1.0.10 and 1.0.8.
`
final Pay _payClient = Pay.withAssets(['applepay.json']);
final Map<String, dynamic> result = await _payClient.showPaymentSelector(
paymentItems: _paymentItems,
);
`
The text was updated successfully, but these errors were encountered: