google-pay / google-pay/flutter-plugin

Failed to present payment controller

Open
#142 18 comments 14 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.