Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3960)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java

Issue 2030193002: Add 'total' field to 'PaymentDetails'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, address comments, and add more tests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
index 13c4aa40099aa511b26b34a981ee2b08f8f25b0f..44e8a8c2400c2fe70eb9e4d55ea79a6bb10e468b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
@@ -32,11 +32,13 @@ public interface PaymentApp {
* cards for the current profile. Can return null or empty list, e.g., if user has no locally
* stored credit cards.
*
- * @param items The line items in the payment request. Can be used to filter out instruments
+ * @param total The total value of the payment request. Can be used to filter out instruments
* that, for example, do not have enough funds.
+ * @param cart The line items in the payment request. Can be used to filter out instruments
+ * that, for example, require the cart total to match the payment request total.
* @param callback The object that will receive the list of instruments.
*/
- void getInstruments(List<PaymentItem> items, InstrumentsCallback callback);
+ void getInstruments(PaymentItem total, List<PaymentItem> cart, InstrumentsCallback callback);
/**
* Returns a list of all payment method names that this app supports. For example, ["visa",

Powered by Google App Engine
This is Rietveld 408576698