google-pay / google-pay/flutter-plugin
Failed to present payment controller
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 176
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
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,
);
`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure at the showPaymentSelecter entry point with Apple Pay, using the reported Flutter 3.0.4 or 2.8.1 and pay 1.0.10 or 1.0.8 versions. Investigate why opening the selector fails after several seconds of waiting; done means the reported scenario no longer raises the paymentError exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile, payments
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100