New issue
Advanced search Search tips

Issue 709036 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug


Show other hotlists

Hotlists containing this issue:
Payments-TechDebt


Sign in to add a comment

[Payments] iOS: Reject the show promise under various conditions

Project Member Reported by ma...@chromium.org, Apr 6 2017

Issue description

If the validation fails on the details passed in by the merchant (options, details, method_data), we should reject the promise. 
 
Can C++ code be called synchronously? Validation errors in constructor should throw, which is synchronous. If C++ cannot be called synchronously, then JavaScript should be the first line of defense against invalid data.
In the absence of "basic-card" method name, the code should perform these two operations:
1) Resolve any caneMakePayment() promise with "false".
2) Reject any show() promise with "NotSupportedError".
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments
Status: Started (was: Assigned)
Status: Fixed (was: Started)

Sign in to add a comment