DescriptionPass "total" to IS_READY_TO_PAY service.
Before this patch, a PaymentRequest for USD $100.00 would show all
available payment apps in Chrome UI, even if some of the apps do not
carry enough balance.
This patch adds a "total" parameter to IS_READY_TO_PAY service. This
parameter is JSON-stringified PaymentCurencyAmount. For example:
{"currency": "USD", "value": "10.00"}
After this patch, payment apps can decide to return "false" to
IS_READY_TO_PAY query if they do not carry enough balance. These apps
would not be available in Chrome UI when a PaymentRequest for too high
of an amount is created.
Spec:
https://docs.google.com/document/d/1izV4uC-tiRJG3JLooqY3YRLU22tYOsLTNq0P_InPJeE
BUG=620173
Review-Url: https://codereview.chromium.org/2873503006
Cr-Commit-Position: refs/heads/master@{#471081}
Committed: https://chromium.googlesource.com/chromium/src/+/75a129138b5e1e7c08ab918c9e754ac4027f24c8
Patch Set 1 #Patch Set 2 : Rebase #
Messages
Total messages: 10 (6 generated)
|