New issue
Advanced search Search tips

Issue 711419 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Feature



Sign in to add a comment

Support multiple PaymentRequests in a frame/page

Project Member Reported by macourteau@chromium.org, Apr 13 2017

Issue description

It should be possible to have multiple PaymentRequests going on in a frame/page at the same time.
 
Owner: rouslan@chromium.org
Status: Untriaged (was: Available)
Can you provide example page that does not succeed? I agree that you should be able to call `new PaymentRequest(methods, details)` multiple times, but `request.show()` should not be called more than one at a time, right?
Cc: mahmadi@chromium.org
(from a discussion with mahmadi@; mahmadi@: please feel free to elaborate if I missed anything)

More details: this is based on how things are implemented in iOS. I'm not sure how it's done for other platforms, but it would be worth making sure it works.

For iOS: PaymentRequest objects can be created in the JavaScript, but it does not currently create PaymentRequests in the model, until show() is called. This is fine for now, as only one request can be shown at once, but as I'm working on adding canMakePayment, there can be multiple active PaymentRequests, which the code does not support.

Also for iOS: when the PaymentRequest constructor executes in JavaScript, it should call into the C++ code to create an object in the model, which should generate an ID for the request, and return that ID.
Cc: -mahmadi@chromium.org
Labels: -OS-All OS-iOS
Owner: mahmadi@chromium.org
Status: Assigned (was: Untriaged)
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments
Labels: -Pri-3 M-61 Pri-2
Status: Started (was: Assigned)

Sign in to add a comment